Fix removal of rect_min_size not triggering resize

fixes #46672
This commit is contained in:
Johannes 2021-03-05 18:24:06 +01:00
parent 4de0768cdb
commit c8868fcaab
No known key found for this signature in database
GPG key ID: B988B760383F3A91

View file

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