浏览代码

Revert "make `Container` node aware of `Size Flags`"

This reverts commit 6ed15e995dd83c1cf6808f261066580a1f8bc297.
Fixes #6974.
Rémi Verschelde 8 年之前
父节点
当前提交
0aebddafc1
共有 1 个文件被更改,包括 0 次插入12 次删除
  1. 0 12
      scene/gui/container.cpp

+ 0 - 12
scene/gui/container.cpp

@@ -151,18 +151,6 @@ void Container::_notification(int p_what) {
 				queue_sort();
 			}
 		} break;
-		case NOTIFICATION_SORT_CHILDREN: {
-
-			Size2 s = get_size();
-
-			for (int i=0; i<get_child_count();i++) {
-				Control *c = get_child(i)->cast_to<Control>();
-				if (!c || !c->is_visible() || c->is_set_as_toplevel())
-					continue;
-
-				fit_child_in_rect(c,Rect2(0, 0, s.width, s.height));
-			}
-		}
 	}
 }