Merge pull request #93386 from anniryynanen/grid-min-size

Fix GridContainer minimum size when there's a hidden parent
This commit is contained in:
Rémi Verschelde 2024-06-20 16:19:02 +02:00
commit 9de785639d
No known key found for this signature in database
GPG Key ID: C3336907360768E1

View File

@ -279,7 +279,7 @@ Size2 GridContainer::get_minimum_size() const {
int valid_controls_index = 0;
for (int i = 0; i < get_child_count(); i++) {
Control *c = as_sortable_control(get_child(i));
Control *c = as_sortable_control(get_child(i), SortableVisbilityMode::VISIBLE);
if (!c) {
continue;
}