Skip to content

Commit 9de7856

Browse files
committed
Merge pull request #93386 from anniryynanen/grid-min-size
Fix GridContainer minimum size when there's a hidden parent
2 parents acb9a4e + 0fefd6c commit 9de7856

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scene/gui/grid_container.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ Size2 GridContainer::get_minimum_size() const {
279279

280280
int valid_controls_index = 0;
281281
for (int i = 0; i < get_child_count(); i++) {
282-
Control *c = as_sortable_control(get_child(i));
282+
Control *c = as_sortable_control(get_child(i), SortableVisbilityMode::VISIBLE);
283283
if (!c) {
284284
continue;
285285
}

0 commit comments

Comments
 (0)