diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2020-01-14 08:11:34 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-14 08:11:34 +0100 |
commit | 6a9b38741f38330387074d0ce8384b05c6ff1b7e (patch) | |
tree | 4a8ccc9993c8c75e60753cf411f46ea31a694f33 /scene/gui/center_container.cpp | |
parent | ebf28c942fab4383b04081514956f0cb9e544c7a (diff) | |
parent | 66a54582eeb426495b627a5d7a4c1fd8d2226c03 (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.cpp | 6 |
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(); } |