SEt size of container children

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By rogerdv

Is there any way to set the size of some container children? I would like to use empty nodes as fillers or also, set the size of several buttons that get adjusted based on text size. I have used expand in the case of buttons, but I would like to know if there is other solution to this.

:bust_in_silhouette: Reply From: Zylann

With GUI container nodes, what you can do is change the minimum_size of children controls, and tweak their Size Flags which gives hints for some containers (like H/VBoxContainer). The other margins and rect are always overriden, but based on the former two properties.
I use “spacer” controls too sometimes, just to fill gaps and control the layout in a finer way.