Merge pull request #50089 from YeldhamDev/splitcontainer_minimal_fix

Make invisible `SplitContainer` nodes correctly calculate the minimal size of its children
This commit is contained in:
Rémi Verschelde 2021-07-02 22:11:30 +02:00 committed by GitHub
commit 676027fc3d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -38,7 +38,7 @@ Control *SplitContainer::_getch(int p_idx) const {
for (int i = 0; i < get_child_count(); i++) { for (int i = 0; i < get_child_count(); i++) {
Control *c = Object::cast_to<Control>(get_child(i)); Control *c = Object::cast_to<Control>(get_child(i));
if (!c || !c->is_visible_in_tree()) { if (!c || !c->is_visible()) {
continue; continue;
} }
if (c->is_set_as_top_level()) { if (c->is_set_as_top_level()) {