summaryrefslogtreecommitdiff
path: root/scene
diff options
context:
space:
mode:
authorJohannes <johawitt@outlook.de>2021-03-05 18:24:06 +0100
committerJohannes <johawitt@outlook.de>2021-03-23 23:06:50 +0100
commitc8868fcaab22fbe81d88a0afcaecf222cd362e0a (patch)
tree8b594c6588ca59db64ff6d45a8b4628e04983c4b /scene
parent4de0768cdbaf68781214601e679548a69c15c673 (diff)
Fix removal of `rect_min_size` not triggering resize
fixes #46672
Diffstat (limited to 'scene')
-rw-r--r--scene/gui/control.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/scene/gui/control.cpp b/scene/gui/control.cpp
index bff3024e38..76ceef2782 100644
--- a/scene/gui/control.cpp
+++ b/scene/gui/control.cpp
@@ -285,15 +285,11 @@ 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();
- }
-
data.updating_last_minimum_size = false;
if (minsize != data.last_minimum_size) {
data.last_minimum_size = minsize;
+ _size_changed();
emit_signal(SceneStringNames::get_singleton()->minimum_size_changed);
}
}