How to have an Image fill Height while growing in Width in a UMG Panel?

I’m assuming you meant HorizontalBox, as a Vertical Box lays out all its children along the Y-Axis and distributes the height among them.
As for your suggestion using Size Box, I already tried that. I don’t think any wrapper like Size Box or Scale Box could even solve that problem. All it can do is give some static desired size, and when the parent then assigns the full height and width according to its desired size, it can ensure the aspect ratio remains the same by shrinking or clipping the image. But at that point I don’t think it can tell the parent to GROW its width to keep the aspect ratio. But that is exactly what I need.

1 Like