Skip to main content
Question

Auto Layout issue


Hello, I’m following a course and learning how to use Figma, but at the auto layout part to create stretchy buttons I don’t understand what I’m doing wrong but whenever I frame a group made of rectangle + text and give it the auto layout the text jumps out of the rectangle, while in the videos I watch they stay where they are and I can’t seem to find a way out to this 🥲 Could someone help me please?

<img src="https://ibb.co/0KK1nsD"> </img> <img src="https://ibb.co/0KK1nsD"> </img>

Thank youu

This topic has been closed for comments

3 replies

  • Author
  • 2 replies
  • January 7, 2024

lol it’s the first time I write on this forum and I thought I was adding some little screenshots of what happens but it wrote the code instead. Well, sorry I’m a newbie 😅


Haroll
  • Active Member
  • 273 replies
  • January 8, 2024

Hi @Miriam10

If your text is not properly contained above your background (rectangle in your case) then the auto-layout won’t understand that you are trying to make the rectangle its background and then process it as an element of your auto-layout.

Hope it helped


  • Author
  • 2 replies
  • January 8, 2024

Thank you, I tried and the problem had exactly that 🤠


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