Skip to main content
Solved

Issue with text alignment

  • December 15, 2021
  • 8 replies
  • 3329 views

Matt_Holihan

Hi,

I’m having issue with text alignment. I have created a component with text that is within an auto layout. The text itself is left-aligned and the auto layout is aligned to the top left. However when using the component and editing the text it fills from the centre.

Screen Shot 2021-12-15 at 2.28.44 pm

Best answer by Gleb

Set constraints to Left.

View original
This topic has been closed for comments

8 replies

Matt_Holihan

Example of a label with extended text
Example 2


Gleb
  • Power Member
  • 4706 replies
  • December 15, 2021

Without seeing how your constraints and layers are set up, there can be millions of reasons why it would work this way.


Matt_Holihan

I’ve noticed the issue happens once I make it a component. Before doing so, the text within the auto layout stays left aligned.


Matt_Holihan

Here is a screenshot of the auto layout setup
Screen Shot 2021-12-15 at 4.26.38 pm


Matt_Holihan

… and a screenshot of the text setup
Screen Shot 2021-12-15 at 4.26.51 pm


Gleb
  • Power Member
  • 4706 replies
  • Answer
  • December 15, 2021

Set constraints to Left.


Matt_Holihan

That did the trick. Thank you.


  • 0 replies
  • January 14, 2022

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


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