[RichTextLabel] Match minimum size calculation of Label
(optional via fit_content property)
This commit is contained in:
parent
3c9bf4bc21
commit
e59d6b1b8c
6 changed files with 31 additions and 43 deletions
|
|
@ -886,7 +886,7 @@ void EditorProperty::_update_pin_flags() {
|
|||
|
||||
static Control *make_help_bit(const String &p_text, bool p_property) {
|
||||
EditorHelpBit *help_bit = memnew(EditorHelpBit);
|
||||
help_bit->get_rich_text()->set_fixed_size_to_width(360 * EDSCALE);
|
||||
help_bit->get_rich_text()->set_custom_minimum_size(Size2(360 * EDSCALE, 1));
|
||||
|
||||
PackedStringArray slices = p_text.split("::", false);
|
||||
if (slices.is_empty()) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue