summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHaoyu Qiu <timothyqiu32@gmail.com>2021-06-21 19:54:40 +0800
committerHaoyu Qiu <timothyqiu32@gmail.com>2021-06-21 19:54:40 +0800
commita57a51750a2bd3e39fdfdf8af5cff26f072a9599 (patch)
treed76dd7ba7b22d92dfa345b72f6c4baa9404f8075
parent9da7f0690046746b2f1430717898abd6377d003a (diff)
Update min size on Label::set_text
-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) {