UMG - Size calculation error

Hi,

Create an widget with an overlay as the root
the first child is a overlay with an image of 128*128
The 2nd child is a text with a top -200
All child are Align V and H centered

Create an animation of the firt child overlay on its scale to move from 0.5 to 1 on X/Y axis

If you place the widget inside another widget, you won’t see the text.
The size calculated for the widget just take the largest size use by the 1st child with the largest scale.

If you remove the top -200 on the 2nd child, you will see the text.

I hope you can repro & fix this.

Thanks

Hello,

I believe that this function of UMG is working as intended. Negative padding would place the text out side of the box. Have you tried using a vertical box and with a padding for a the text of 200 on the bottom? Let me know if this works for you.

Hi,

I miss one things:
Eeverything is center align Vertically and horizontally. So doing top minus value is putting the text outside the widget.
More, I also did a text with the bottom value and it’s the same value, it’s not taken into account in the Widget Size calculation.

How you are to repro this?
Widget setup

What you see when you add it:

Hello,

I was able to reproduce this issue on our end. I have written up a report ( UE-18439) and I have submitted it to the developers for further consideration. I will provide updates with any pertinent information as it becomes available. Thank you for your time and information.

Make it a great day