#how to resize everything with my window?

1 messages · Page 1 of 1 (latest)

robust wing
#

whenever I try to resize the window, my labels and hboxes (and the sort) don't resize with the window. I tried it with panels and they resize just fine. I added all my ui to a canvaslayer and it worked for some things like a settings (width only) menu. but the hboxes, labels, etc don't resize.

deep pumice
#

They must be a child of a Control node and have their sizing set trough anchors.

robust wing
deep pumice
#

I think that's set on the children.

size_flags_horizontal/vertical control how the children is treated.

#

size_flags_stretch_ratio controls how much their size is affected when compared to other siblings. (higher ratio means they occupy more space than the others.)

deep pumice
#

It should appear in the child node

#

It is a property/variable so it appears in the Inspector alongside the rest.

#

You can also set it from the 2D viewport on the top bar while a Control node is selected (and they are a child of a Container of any sort)

robust wing
#

i couldn't find the size_flags, but i found a reddit post and I fixed my issue by doing Settings > Display > Window > "Mode to Canvas Items" and "Aspect to Expand"