Skip to main content
Cory2
Jun 13, 2024 4:29 AM UTC
Question

Horizontal Padding not being applied in autolayout

I’m taking a Figma class and in the video there are 2 things regarding ‘horizontal padding’ that are inconsistent with how my design is acting compared to the instructors.

  1. In the top left I can’t select the ‘Distribute horizontal spacing’
  2. When I add horizontal padding to a group of components, it shifts them to the right, while and doesn’t add the correct padding on the left and right side of the cards which should push them 24 pixels inside of the parent frame.

This topic has been closed for replies.

5 replies

Gleb
Power Member
Jun 13, 2024 4:56 AM UTC

the layers inside need to be set to fill

Cory2
Cory2Author
Jun 14, 2024 2:22 AM UTC

As in the individual components/cards that make up the card stack?

Gleb
Power Member
Jun 14, 2024 6:42 AM UTC

I guess so. Whatever is inside of the currently selected frame on your screenshot and all the layers further in the hierarchy.

Lorenzo Mecugni
New Member
Mar 13, 2025 11:23 AM UTC

Hi guys, what do you mean “layers inside need to be set to fill”?

same issue here .. vertical padding works just fine, horizontal padding instead pushes my text boxes to the right ..

help please, thank you

 

Rafa.lima
New Member
Jul 7, 2025 1:45 PM UTC

It’s not the fill. In your auto layout settings the width is set to “fixed”, you must switch to “hug” as the height.