AutomaticSize doesn't respect UIPadding

AutomaticSize does not respect UIPadding.

Image of TextLabel within an ImageButton. Both are using AutomaticSize in Y and no UIPadding child:
image

Image of TextLabel within an ImageButton. Both are using AutomaticSize in Y. There is a UIPadding child under the ImageButton parent (it’s a sibling of TextLabel):
image

I tried working around this by placing the UIPadding as a child of the TextLabel itself, but then the text gets cut off prematurely:
image

It seems that AutomaticSize simply does not respect the UIPadding element at this time. It would be great to see this accounted for in the future!

3 Likes

I can verify this, it does not respect it.

1 Like