Merge pull request #60221 from YeldhamDev/grid_toplevel_fix

Fix `GridContainer` not ignoring toplevel children
This commit is contained in:
Rémi Verschelde 2022-04-14 00:33:52 +02:00 committed by GitHub
commit 3b57c2ce6b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -50,6 +50,9 @@ void GridContainer::_notification(int p_what) {
if (!c || !c->is_visible_in_tree()) {
continue;
}
if (c->is_set_as_top_level()) {
continue;
}
int row = valid_controls_index / columns;
int col = valid_controls_index % columns;