How do you 'limit' the contents of an HBoxContainer so they scale down as more are added?

Version: 4.4.1

I have an HBox and want to limit its boundaries so the contents (TextureRects/other Control Nodes) scale down as more are added rather than clip outside of the HBox like shown below.

Is that possible? If so, how do you do it?

I’ve tried messing with the HBox’s anchors and the child nodes but could not figure it out.

The Hboxcontainer can’t be smaller than the minimum size of the nodes it contains. For texturerects you need to change the expand mode to make the minimum size smaller.

1 Like