Godot Engine – Multi-platform 2D and 3D game engine
Fix box container expand mode with desired size resulting in smaller child
ajreckof3e03f099fffa
diff --git a/scene/gui/box_container.cpp b/scene/gui/box_container.cppindex 789c28281ac..f386aa37a63 100644--- a/scene/gui/box_container.cpp+++ b/scene/gui/box_container.cpp@@ -141,6 +141,7 @@ void BoxContainer::_resort() {if (msc.will_stretch) {// Increase the minimum size to reflect the desired size allocation, so that the SIZE_EXPAND allocation does not shrink them back down.msc.min_size += desired_size_increase;+ combined_min += desired_size_increase;} else {// If the Control isn't stretchablestretch_space -= desired_size_increase;