From 66a54582eeb426495b627a5d7a4c1fd8d2226c03 Mon Sep 17 00:00:00 2001 From: Haoyu Qiu Date: Tue, 14 Jan 2020 08:35:21 +0800 Subject: [PATCH] Updates min size on CenterContainer::set_use_top_left --- scene/gui/center_container.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/scene/gui/center_container.cpp b/scene/gui/center_container.cpp index 9f4353ceb6b..64d6885bc80 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(); }