Make my Widget Components fit in the box properly

It’s probably because the vertical box is not limited by anything. You could use a Border (container widget) as a parent of your Vertical Box. Then, in your Vertical Box, set horizontal and vertical alignment to Fill. It will fill the space of your border but will also be restricted by its size.

Hi,

I have a vertical box that is meant to store several Child Widgets, which are little boxes with various info and buttons in them. When I place them inside my vertical box, if the size is set to Fill: They stretch to be much larger than they should be to fill the box, and when set to Auto, the dimensions of the Child Widget compress into a tiny line and cause all of the information to overlap. How do I make sure my Child widget preserves its original size when it is added to my vertical box?

(Set to Fill)

(Set to Auto)

(Original Child Widget)

This sadly isn’t the solution or me. The issue isn’t with the Vertical Box itself, but rather, the Child Widget entries within it not properly retaining their size when set to Auto. I can’t manually fidget with it until it looks nice, since I need to accommodate any number of entries. They need to be scaled properly if there is 1, or 10. They should stack on top of one another neatly, and I should be able to add or remove them at runtime via blueprint.

I should probably mention that this means the “Fill” size option isn’t really possible for me to use for this feature. Rather, I need to get my Child Blueprints to fir properly when set to Auto. This isn’t an issue if I add a button, or something, but it is for my Child Widgets

After a while of searching, I found that the solution to my problem is the “Size Box” component, inside of my Child widget. You can set the desired size of you widget, and any other features will respect those proportions.