Make invisible SplitContainer nodes correctly calculate the minimal size of its children

(cherry picked from commit e4d56e4c62)
This commit is contained in:
Michael Alexsander 2021-07-02 14:30:50 -03:00 committed by Rémi Verschelde
parent ab1162e918
commit d453b59cba
No known key found for this signature in database
GPG Key ID: C3336907360768E1

View File

@ -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_toplevel()) {