Make the inner TabBar in a TabContainer behave as if it were in a Container
This commit is contained in:
parent
e5594c26b1
commit
65f97c671c
1 changed files with 2 additions and 2 deletions
|
@ -519,12 +519,12 @@ void TabContainer::_refresh_tab_names() {
|
|||
}
|
||||
|
||||
void TabContainer::add_child_notify(Node *p_child) {
|
||||
Container::add_child_notify(p_child);
|
||||
|
||||
if (p_child == tab_bar) {
|
||||
return;
|
||||
}
|
||||
|
||||
Container::add_child_notify(p_child);
|
||||
|
||||
Control *c = Object::cast_to<Control>(p_child);
|
||||
if (!c || c->is_set_as_top_level()) {
|
||||
return;
|
||||
|
|
Loading…
Reference in a new issue