summaryrefslogtreecommitdiff
path: root/scene/gui
diff options
context:
space:
mode:
authorHaoyu Qiu <timothyqiu32@gmail.com>2020-01-14 08:35:21 +0800
committerHaoyu Qiu <timothyqiu32@gmail.com>2020-01-14 08:35:21 +0800
commit66a54582eeb426495b627a5d7a4c1fd8d2226c03 (patch)
tree98b78db3751fd4be11042914bcde58b58f1aec59 /scene/gui
parent34ad33d9e0b211b2de5855373f8626af4fc0ce11 (diff)
Updates min size on CenterContainer::set_use_top_left
Diffstat (limited to 'scene/gui')
-rw-r--r--scene/gui/center_container.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/scene/gui/center_container.cpp b/scene/gui/center_container.cpp
index 9f4353ceb6..64d6885bc8 100644
--- a/scene/gui/center_container.cpp
+++ b/scene/gui/center_container.cpp
@@ -54,7 +54,13 @@ Size2 CenterContainer::get_minimum_size() const {
void CenterContainer::set_use_top_left(bool p_enable) {
+ if (use_top_left == p_enable) {
+ return;
+ }
+
use_top_left = p_enable;
+
+ minimum_size_changed();
queue_sort();
}