You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2026-01-06 19:41:11 +00:00
Revert "make Container node aware of Size Flags"
This reverts commit 6ed15e995d.
Fixes #6974.
This commit is contained in:
@@ -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));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user