I've been trying to follow this tutorial -

however the vbox doesn't seem to work. I have a control node with a centre container and a vbox container. When I resize the centre container y value to 300 the vbox doesn't move to below this container like I would expect. Any ideas?

Hi,

You need to change Min Size not just Size, because Size is adjusted by parent container, so your change will be overwritten.

Min Size is used by parent container to layout children, so it should work. Also if you check closely video you shared then you can see also that Min Size of CenterContainer is changed.

Instead of using CenterContainer, it works better if you use dummy nodes. Just create two Control nodes (either above and below, or to the left or right, depending on VBox/HBox) then set their size flags to fill and expand on. This will fill all the blank space and make the stuff in the middle centered.

I've got it working thanks for the help!

9 months later