summaryrefslogtreecommitdiff
path: root/scene/gui
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2021-06-21 19:09:56 +0200
committerGitHub <noreply@github.com>2021-06-21 19:09:56 +0200
commit06a0d033a167ad06bed17195748e1a704a873feb (patch)
tree56504541269bba537cdcdd954f5e738daaf97c2e /scene/gui
parent0638ca00373a7fb9e0c114ccc43eae7a17f6f61d (diff)
parenta57a51750a2bd3e39fdfdf8af5cff26f072a9599 (diff)
Merge pull request #49795 from timothyqiu/label-min-size
Update min size on Label::set_text
Diffstat (limited to 'scene/gui')
-rw-r--r--scene/gui/label.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/scene/gui/label.cpp b/scene/gui/label.cpp
index 0ce0130ad5..6580d794d1 100644
--- a/scene/gui/label.cpp
+++ b/scene/gui/label.cpp
@@ -453,6 +453,7 @@ void Label::set_text(const String &p_string) {
visible_chars = get_total_character_count() * percent_visible;
}
update();
+ minimum_size_changed();
}
void Label::set_text_direction(Control::TextDirection p_text_direction) {