Merge pull request #46702 from HaSa1002/fix-min-size-resize

Fix removal of `rect_min_size` not triggering resize
This commit is contained in:
Rémi Verschelde 2021-03-30 20:46:04 +02:00 committed by GitHub
commit 995ce158dd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);
}
}