Children inside VerticalBox ignore the size of the parent?

Hi GrinningPariah,

Most container type widgets, by default, don’t clip (crop) the sub-widgets to their bounds. In your provided scenario, the VerticalBox is actually adhering to the overidded size of the SizeBox (you can click on the vertical box to see). What’s happening is if you leave the image set to “auto” in the vertical box slot, it won’t resize itself to fit inside the bounds.

348991-verticalboxclippingrule.png

If you want the vertical box to crop the parts outside of its bounds, you set its’ clipping rule to this^

348992-slotfill.png

If you want the sub-widgets to resize to try and fit within the bounds, give them a relative fill value^

(Note this “fill” is for filling the “available” space in the bounds, if the “auto” subwidgets are taking up more space than the bounds, the “fill” subwidgets will have no size)

Hope this helps, let me know if I misunderstood anything or if there are other issues you encounter :slight_smile: