mirror of
https://github.com/godotengine/godot.git
synced 2024-11-23 04:33:29 +00:00
Make invisible SplitContainer
nodes correctly calculate the minimal size of its children
This commit is contained in:
parent
5710adda72
commit
e4d56e4c62
@ -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()) {
|
||||
|
Loading…
Reference in New Issue
Block a user