Skip to main content
Jan 7, 2024 11:56 AM UTC
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 replies.

3 replies

Miriam10Author
Jan 7, 2024 11:57 AM UTC

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
Figma Ambassador
Figma Ambassador
Jan 8, 2024 9:27 AM UTC

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

Figma’s Forum Ambassador
Miriam10Author
Jan 8, 2024 10:54 AM UTC

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