Browse Source

Fix removal of `rect_min_size` not triggering resize

fixes #46672

(cherry picked from commit c8868fcaab22fbe81d88a0afcaecf222cd362e0a)
Johannes 4 years ago
parent
commit
a3c67dd3fc
1 changed files with 1 additions and 5 deletions
  1. 1 5
      scene/gui/control.cpp

+ 1 - 5
scene/gui/control.cpp

@@ -292,15 +292,11 @@ void Control::_update_minimum_size() {
 		return;
 
 	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);
 	}
 }