Fix GridContainer
not ignoring toplevel children
(cherry picked from commit 506d8ba526
)
This commit is contained in:
parent
198d147f8e
commit
21bdadbf79
1 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue