Skip to main content
Question

Autolayout frames defaults to "Fill" instead of "Hug"

  • September 26, 2022
  • 6 replies
  • 1052 views

Jairo

So a weird bug is happening to me.

The scenario:

Figma – 26 Sep 22

I have an autolayout object (Red) Set to hug/hug.
The inner shape is a fixed size random object.

Once i grab this object and place it into another autolayout frame, then it turnos into fill/hug

I often meet this bug, and it does not happen to every autolayout frame, so im in the quest to find what causes it.

When i encounter this, my usual workaround is to wrap the red object with a regular frame, then move it into the autolayout container, and then dismiss the regular frame.
That way it keeps being hug/hug.

You will find a replica object in green, which i created the same way as the other, but that one behaves as expected and does not change to fill on any axis.

Did you ever encounter this?
Do you have a solution?
Can you help me find out?

Thanks in advance!

This topic has been closed for replies.

6 replies

Jairo
  • Author
  • 50 replies
  • September 26, 2022

Ok, solved the thing but keeping the post just for help.

Turns out Autolayout frames have “memory”.
I added a stepped guide with a purple rectangle that would behave correctly when dropped into an autolayout frame, but when following the steps it gets as bad as red rectangle.

In short: When you set an object inside an autolayout frame to be “fill / fill” and then you drag it out of that object, it can no longer be “Fill/Fill” so it is set to “Fixed/Fixed”.
At this point Figma should reset this frame status and forget his “Fill/Fill” past.
But no, Figma is not going to do that. It will remember, it will never forget.

Guys, we need to learn to let things go…

After that, when you are thinking nothing is wrong, you drop the “Fixed/Fixed” rectangle into a new Autolayout Frame, and just like my EX Karen did, it brings back that “Fill / Fill” past that no one was asking for, and messes everything up.

Please Figma fix this bug, and while you are at it, all our broken relationships 🙂


Avokadomos
  • Active Member
  • 377 replies
  • September 26, 2022

You should report this as a bug. Even if the behavior is consistent, it’s gonna feel inconsistent for the user since it’s not communicated well enough.

Figma Help Center

Jairo
  • Author
  • 50 replies
  • September 26, 2022

Not coummunicated well enough?


Avokadomos
  • Active Member
  • 377 replies
  • September 26, 2022

The fact that the frame has “memory” is not communicated to the user, causing confusion.


Jairo
  • Author
  • 50 replies
  • September 26, 2022

Oh, i see!

I did already report the thing as a bug,


the_greg
  • New Member
  • 4 replies
  • November 27, 2024

I vote for this. Fill instead of Hug default behaviour is mostly annoying when working with text inside Auto Layout. I understand that CSS block elements like div has a default behaviour to occupy the remaining vertical space (fill) but when designing in Figma that should be the other way around. This affects mostly text elements inside the Auto Layout container. Please fix this cause Text is not a block element


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