From 7a27abae495872ab2008dcc44cbe627e810fd6a7 Mon Sep 17 00:00:00 2001 From: Bhupendra Aole Date: Tue, 3 Sep 2019 14:48:47 -0400 Subject: Change minimum size when theme changed Need to call minimum_size_changed on controls whenever the theme is changed. Fixes godotengine#29816 --- scene/gui/control.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/scene/gui/control.cpp b/scene/gui/control.cpp index 174c2fce7d..5f0cb5aedf 100644 --- a/scene/gui/control.cpp +++ b/scene/gui/control.cpp @@ -645,6 +645,7 @@ void Control::_notification(int p_notification) { } break; case NOTIFICATION_THEME_CHANGED: { + minimum_size_changed(); update(); } break; case NOTIFICATION_MODAL_CLOSE: { -- cgit v1.2.3