diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2021-03-30 20:46:04 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-30 20:46:04 +0200 |
commit | 995ce158dd5024218b1eb6682de7750202f114dc (patch) | |
tree | 967a5abf61fdb9612dae23f9dfdd6ce3f86f4b9a /scene | |
parent | 69a78c006c75906ba859bc982800ff6b6180d5a2 (diff) | |
parent | c8868fcaab22fbe81d88a0afcaecf222cd362e0a (diff) |
Merge pull request #46702 from HaSa1002/fix-min-size-resize
Fix removal of `rect_min_size` not triggering resize
Diffstat (limited to 'scene')
-rw-r--r-- | scene/gui/control.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/scene/gui/control.cpp b/scene/gui/control.cpp index 2e391adf2c..1e13597e94 100644 --- a/scene/gui/control.cpp +++ b/scene/gui/control.cpp @@ -290,15 +290,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); } } |