Skip to main content
Question

Auto Layout issue

  • January 7, 2024
  • 3 replies
  • 355 views

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 replies.

3 replies

  • Author
  • 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
  • Power Member
  • 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
  • January 8, 2024

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