From a57a51750a2bd3e39fdfdf8af5cff26f072a9599 Mon Sep 17 00:00:00 2001 From: Haoyu Qiu Date: Mon, 21 Jun 2021 19:54:40 +0800 Subject: Update min size on Label::set_text --- scene/gui/label.cpp | 1 + 1 file changed, 1 insertion(+) 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) { -- cgit v1.2.3