Skip to main content
Answer

Switching the auto layout direction broke my original settings

  • July 18, 2024
  • 4 replies
  • 136 views

jeter_lee

I set the element width to fill in an automatic layout.
When I change the direction of the auto layout, the element width becomes a fixed width. I have to set the width of the element again. I hope that switching the direction does not affect some of the settings of the original element, otherwise it will cause a series of extra work.

Best answer by Gleb

I made a plugin that fixes this, try it out: https://figma.fun/hcNyUh

Just bind it to a shortcut and use that instead of a default button in the right panel.

Here is how it works:

demo

This topic has been closed for replies.

4 replies

Gleb
  • Power Member
  • Answer
  • August 14, 2024

I made a plugin that fixes this, try it out: https://figma.fun/hcNyUh

Just bind it to a shortcut and use that instead of a default button in the right panel.

Here is how it works:

demo


Lachlan1
  • New Participant
  • August 20, 2024

Thanks for creating and sharing this fantastic little tool with us Gleb! The fact someone at Figma thought it would be a good idea to override settings like this is curious… and so, so frustrating. I love that the community comes to the rescue once again, though!


jeter_lee
  • Author
  • New Member
  • August 20, 2024

It’s really awesome and very cool.


Zach_Thomson
  • New Participant
  • August 20, 2024

I also created a post for this issue and reached out directly. This seems to be the reason for the issue:

"Based on what I can see in the engineering notes it looks like there was a change needed for elements in vertical auto layout frames to default to fill width when created, to clear some persistent issues. This then created some trickle down impacts for frames where the direction changed, which are especially noticeable and disruptive for frames with alternative settings than the defaults.

They agree that the problems this is causing are having a greater impact that we’d expect for any changes of this kind and as a result are looking at how best to have direction changes work as previously and we sincerely apologise for the disruption this causes in the interim."