From 5f5507cc629426f1efb94001cb437f5ab764721d Mon Sep 17 00:00:00 2001 From: James Buck Date: Thu, 16 May 2019 21:52:32 -0500 Subject: [PATCH] Update Control margins when size is overridden by change to minsize --- scene/gui/control.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scene/gui/control.cpp b/scene/gui/control.cpp index a38f97a90ce..293817e6b76 100644 --- a/scene/gui/control.cpp +++ b/scene/gui/control.cpp @@ -276,7 +276,7 @@ void Control::_update_minimum_size() { Size2 minsize = get_combined_minimum_size(); if (minsize.x > data.size_cache.x || minsize.y > data.size_cache.y) { - _size_changed(); + set_size(data.size_cache); } data.updating_last_minimum_size = false;