Control over Auto Layout default settings (Hug, Fixed, Filled)
Describe the problem your experiencing and how your idea helps solve this
Every time I enable Auto Layout (AL), the detail setting is set to Hug Contents. I realize that in some cases, it makes sense, but not always. We use the fixed width/height quite often, and changing it manually every time to fixed is pretty annoying.
Probably introduce a user setting for default AL behaviour or remember the last setting used. Meaning that if I used Fixed the last time, it would be the initial setting next time I enable AL.
Add as much context as possible (screenshots, Figma files, mockups, etc.)
AL is a versatile tool, and more flexibility would make it even more user-friendly.
Ask questions to bring the community into the conversation
(e.g. Does anyone else experience this? Is anyone using a plugin or workaround to help solve this?, etc.
Page 1 / 1
Came here as I was searching for the same issue. It’s minor but it would be a nice quality of life improvement for autolayout to somehow not assume that by default I want everything to be “hug contents”. In fact, the first time I’m drafting a component, more often than not I want it to be fixed and then apply hug contents later (although I realise that’s specific to my workflow)
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
I would like to set the default for including strokes in layout as well. Just more default settings in general would be a great quality of life improvement.
Recently (~July 2024), the default behavior of how layers react to auto layout is different and very disruptive.
For example, if I have a text layer inside a frame and the text layer set to Fill, and then I press Shift-a to create a new auto layout frame around the text field, it sets the text layer and new auto layout frame to Hug.
Previously the new auto layout frame would inherit the behavior of what’s being wrapped and retain the width setting for the objects inside (text layer in this example). This allows you to then duplicate that layer and stack appropriately. But since everything gets set to Hug, it always behaves exactly how I don’t want it to!
Hey All, thanks for the feedback and apologies for the lack of acknowledgement here!
We’ll pass this onto our Auto Layout team for future improvement.
For me, it’s actually the opposite. I am used to the original behavior and always expect elements to be ‘hugged’ when auto-layouted. But for some reason, without any explanation (at least not that I've heard of), that behavior has changed and I can’t even figure out what to expect every time I auto-layout things. For example, sometimes I need to organize my components into blocks, and when each one of them ‘hugs’ the variants that have fixed width, I expect to preserve that width, and I expect the newly created auto-layout to also hug, because I may need to add more components of different width. But when grouped into an auto-layout, not only they can change the original settings, but also won’t necessarily follow the same pattern. On the screenshot below, the upper component became ‘fill’ while the other 2 stayed ‘Hug’. Why?
I could try and accept the logic, that the auto layout inherits the width of the widest item inside, and becomes ‘fixed’. But then I try the same with an H-stack, and get the following:
Following that logic, the height of the highest must have become the fixed height of the auto layout. But no block has changed its behavior in this case, and the auto layout hugs the content. I am sorry, but it confuses the hell out of me. Now every time I create an auto layout, I need to go down to the deepest nested frame and check again all the settings, that I have already set before.
Please explain the pattern, or come up with a solution to this. Thanks