Update Control margins when size is overridden by change to minsize

This commit is contained in:
James Buck 2019-05-16 21:52:32 -05:00
parent 2809d86156
commit 5f5507cc62

View file

@ -276,7 +276,7 @@ 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();
set_size(data.size_cache);
}
data.updating_last_minimum_size = false;