浏览代码

Update min size on Label::set_text

Haoyu Qiu 4 年之前
父节点
当前提交
a57a51750a
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      scene/gui/label.cpp

+ 1 - 0
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) {