Godot Version
v4.4.stable.official [4c311cbee]
Question
I’m writing a custom Container class and I need a way to notify Godot that the minimum container size has changed. When the user changes the drag_bar_width
or content_width
properties, the layout should update to reflect this change. Right now I’m overriding _get_minimum_size()
to indicate the minimum size.
Is there a way to signal that this size has changed?
func _get_minimum_size() -> Vector2:
var min_size = Vector2(drag_bar_width + content_width, 0)
print("min_size ", min_size)
return min_size