From 0aebddafc1636f3e7628cdac8028c2ce69c5abe8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Verschelde?= Date: Sun, 30 Oct 2016 15:13:44 +0100 Subject: [PATCH] Revert "make `Container` node aware of `Size Flags`" This reverts commit 6ed15e995dd83c1cf6808f261066580a1f8bc297. Fixes #6974. --- scene/gui/container.cpp | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/scene/gui/container.cpp b/scene/gui/container.cpp index 83a4f342827..feaf516f42d 100644 --- a/scene/gui/container.cpp +++ b/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; icast_to(); - if (!c || !c->is_visible() || c->is_set_as_toplevel()) - continue; - - fit_child_in_rect(c,Rect2(0, 0, s.width, s.height)); - } - } } }