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 :smiling_face_with_tear: Could someone help me please?

<img src=""> </img> <img src=""> </img>

Thank youu

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 :sweat_smile:

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

1 Like

Thank you, I tried and the problem had exactly that :cowboy_hat_face: