Skip to main content
Solved

How to keep things equally spaced out when resizing with Auto Layout?

  • October 24, 2022
  • 5 replies
  • 2642 views

Brie1

I looked through this form and I have seen lots of people having issues with Auto Layout so I’m not sure if there is a solution to this.

I have a box with 3 objects in it equally spaced out using Auto Layout.

This screenshot lays out the issue that I am having does anyone else know another way to achieve this goal with Auto Layout?

Best answer by tank666

By changing “Space between items” do you enter a numeric value or “auto” (in advanced layout settings it’s “Spacing mode › Space between”)?
“Auto” is what you need.

This can also be achieved like this: wrap the center part in a frame and set the “Fill container” horizontally, and then change the constraints on the objects inside that frame.

View original
This topic has been closed for comments

tank666
  • October 24, 2022

By changing “Space between items” do you enter a numeric value or “auto” (in advanced layout settings it’s “Spacing mode › Space between”)?
“Auto” is what you need.

This can also be achieved like this: wrap the center part in a frame and set the “Fill container” horizontally, and then change the constraints on the objects inside that frame.


Brie1
  • October 24, 2022

I didn’t know there was an Auto!!! I have been researching this for hours how does no one mention this 😭 😭

Thank you so much


tank666
  • October 24, 2022

It was enough to open additional layout settings or read the Help Center article.

Figma Help Center

Thompson

What if you wanted to keep the vertical alignment? I have a series of elements that have unequal horizontal spacing as well as an uneven vertical alignment. Using auto-alignment snaps the elements into alignment. Any way around this?
I realize this scenario is somewhat unusual, so I’m not expecting that it can be done easily. I don’t miss XD but it was good at this type of thing.


y_toku
Figmate
  • Community Support
  • January 24, 2024

Hi there,

I don’t think there is but I’m checking with our internal team. I willl get back to you if there is anything I can share with you.

Thanks,
Toku


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