summaryrefslogtreecommitdiff
path: root/scene/gui/control.cpp
diff options
context:
space:
mode:
authorBhupendra Aole <aole@users.noreply.github.com>2019-09-03 14:48:47 -0400
committerBhupendra Aole <aole@users.noreply.github.com>2019-09-03 14:56:56 -0400
commit7a27abae495872ab2008dcc44cbe627e810fd6a7 (patch)
tree3cae521b9cc2be0d17870243e591b7e0965f1ed9 /scene/gui/control.cpp
parent750f8d4926edb14269d9f6a117c5a9fd4765373a (diff)
Change minimum size when theme changed
Need to call minimum_size_changed on controls whenever the theme is changed. Fixes godotengine#29816
Diffstat (limited to 'scene/gui/control.cpp')
-rw-r--r--scene/gui/control.cpp1
1 files changed, 1 insertions, 0 deletions
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: {