summaryrefslogtreecommitdiff
path: root/UI/contain_container.gd
blob: df6e3a8a4d7b9ab7429db7034173d66d5eea72fa (plain)
1
2
3
4
5
6
7
8
9
10
@tool
class_name ContainContainer
extends Container


func _notification(what: int) -> void:
	if what == NOTIFICATION_SORT_CHILDREN:
		for child in get_children():
			if child is Control:
				fit_child_in_rect(child, Rect2(Vector2.ZERO, size))