Skip to main content
Question

Can an autolayout button to break to 2 lines when reaching a certain length?


Christopher_Carney

Is there a way to apply a contraint in some way that would automatically break an autolayout button to break to multiple lines when reaching a certain length? The trick here is to maintain a background color that hugs the text length as it grows. Extending the tex field out to a fixed width does it but you lose the full hugging the text length.

The use case here would be a component that mimics a speech bubble for text messages

This topic has been closed for replies.

2 replies

Gleb
  • Power Member
  • 4708 replies
  • May 12, 2021

It’s not possible, you can vote for this suggestion: Wrap elements in Auto Layout to multiple lines


Christopher_Carney

Damn, seems like something that should be fairly standard. Are there any releases planned to support this?


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