Fix `GridContainer` not ignoring toplevel children

(cherry picked from commit 506d8ba526)
This commit is contained in:
Michael Alexsander 2022-04-13 18:09:51 -03:00 committed by Rémi Verschelde
parent 198d147f8e
commit 21bdadbf79
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_toplevel()) {
continue;
}
int row = valid_controls_index / columns;
int col = valid_controls_index % columns;