浏览代码

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

Michael Alexsander 4 年之前
父节点
当前提交
e4d56e4c62
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      scene/gui/split_container.cpp

+ 1 - 1
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()) {