diff options
author | Michael Alexsander <michaelalexsander@protonmail.com> | 2021-07-02 14:30:50 -0300 |
---|---|---|
committer | Michael Alexsander <michaelalexsander@protonmail.com> | 2021-07-02 14:39:50 -0300 |
commit | e4d56e4c62e86a78246ca0d250ca6d52adbd94bf (patch) | |
tree | a20882308d0af2050b7c687ff5706af469b9096b /scene/gui | |
parent | 5710adda72a08f81c4df00147f560eebacf3b473 (diff) |
Make invisible `SplitContainer` nodes correctly calculate the minimal size of its children
Diffstat (limited to 'scene/gui')
-rw-r--r-- | scene/gui/split_container.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/gui/split_container.cpp b/scene/gui/split_container.cpp index df4cf9a740..9796b32c6b 100644 --- a/scene/gui/split_container.cpp +++ b/scene/gui/split_container.cpp @@ -38,7 +38,7 @@ Control *SplitContainer::_getch(int p_idx) const { for (int i = 0; i < get_child_count(); i++) { Control *c = Object::cast_to<Control>(get_child(i)); - if (!c || !c->is_visible_in_tree()) { + if (!c || !c->is_visible()) { continue; } if (c->is_set_as_top_level()) { |