Fix `GridContainer` not ignoring toplevel children

This commit is contained in:
Michael Alexsander 2022-04-13 18:09:51 -03:00
parent 8fee88947e
commit 506d8ba526
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;