diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2021-07-02 22:11:30 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-02 22:11:30 +0200 |
commit | 676027fc3df07ad0c59c7d128bcc15f5ff58ae4a (patch) | |
tree | 4998eab0599745fd02709d93238a44fc5ba1ebcd | |
parent | c77e0da1d78b1fed87fe056dd6b7b12cca9ec394 (diff) | |
parent | e4d56e4c62e86a78246ca0d250ca6d52adbd94bf (diff) |
Merge pull request #50089 from YeldhamDev/splitcontainer_minimal_fix
Make invisible `SplitContainer` nodes correctly calculate the minimal size of its children
-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()) { |