Skip to main content
Solved

Center text within auto-layout component


Robert_Norgren1

Hi there,

I want to create an adaptive button with centered text. It needs to have a minimum width.

There’s no minimum width option so I created a hack by placing a 0px stroke within the component.

The issue I’m having I can’t in the world figure out how to center the text.

Screenshot: centered-label — ImgBB

Any ideas?

Thank you

Best answer by Klesus

Set alignment to center
image

View original
This topic has been closed for comments

2 replies

Klesus
  • 237 replies
  • Answer
  • March 11, 2022

Set alignment to center
image


Robert_Norgren1

There it is. Thank you!!!


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings