Automatic Size border size

I have a problem with automatic size:

what it does:

what I want

am not sure how to give the text additional size on the border

You could try using a UIPadding object to set invisible margins inside the textLabel. Parent it directly inside the textLabel and it should work.

i found a solution already, i just put spaces at the front and at the end

I still recommend you to use padding though, it’s easier to adjust and more precise.

true, UIPadding is easier to adjust

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.