summaryrefslogtreecommitdiff
path: root/scene/gui/center_container.cpp
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2020-01-14 08:11:34 +0100
committerGitHub <noreply@github.com>2020-01-14 08:11:34 +0100
commit6a9b38741f38330387074d0ce8384b05c6ff1b7e (patch)
tree4a8ccc9993c8c75e60753cf411f46ea31a694f33 /scene/gui/center_container.cpp
parentebf28c942fab4383b04081514956f0cb9e544c7a (diff)
parent66a54582eeb426495b627a5d7a4c1fd8d2226c03 (diff)
Merge pull request #35105 from timothyqiu/center-container-min-size
Updates min size on CenterContainer::set_use_top_left
Diffstat (limited to 'scene/gui/center_container.cpp')
-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();
}