Skip to main content
Antoine
Active Member
May 19, 2022

"Empty" Auto Layout Frame keeps the size of last hidden child

  • May 19, 2022
  • 125 replies
  • 14039 views

Hi, I’m not sure if this is new since the May update, but I wonder why “empty” (all elements hidden) Auto Layout Frames keep the size of the last hidden child (and I do not mean last in the list, but the last element to have been toggled out of view by the user), making them not-0px high even with nothing in them.

See here a file with a Frame with three hidden rectangle: the Frame keeps the size of the last child rectangle to have been hidden. When adding a 0-px Frame to the AL frame, and toggling this 0-px Frame off last, the container goes 0-px.

In my opinion, empty AL Frames should have a height of 0. What do you think?

Pinned Reply By djv

Hey All, thanks for your continued feedback, and we apologize for the confusion caused by this!

As mentioned above, this is behavior is currently a known feature limitation in Figma.
We do not allow Auto layout frames to collapse to 0 when the child layers are hidden, so it is expected that the frame will remain sized as if they were shown.

Again, the team’s original solution was more complicated than they originally anticipated. They will need more bandwidth and more heads to collaborate to get this working as expected.

Our team is still actively tracking this as a feature request and quality improvement for future prioritization. Rest-assured that every new comment is being added to our our open report to give this topic more visibility so that it can be pushed to the top of the team’s priority list.

We’ll be sure to provide an update as soon as we can, but also keep an eye out on our future releases .

125 replies

itsViney
New Member
November 14, 2025

+1 From me too. Also would be nice to have a ‘Collapse padding when empty’ toggle

Rafa_Moschen
New Member
December 4, 2025

Looking for answers here because I am having this issue but a colleague of mine isn’t. Makes me wonder if there is anything I should be doing different.

Seth6
New Participant
January 14, 2026

I’m also having this issue. Would like to be able to have the frame collapse without having to add anything weird like a third boolean property. It’s limiting the design layout possibilities. Unless I add another variant which is kind of heavy. This is for an enterprise so, the components get kind of big and I want to minimize that if possible.

Seth6
New Participant
January 14, 2026

Looking for answers here because I am having this issue but a colleague of mine isn’t. Makes me wonder if there is anything I should be doing different.

Why is your colleague not having this issue? I’d like to know if they found a solution.

Julia57
Active Member
January 19, 2026

Chiming in here again because I just noticed that fixing this issue would also finally make the AL Grid usable!!

Joseph_Niet
New Participant
March 23, 2026

Yeah this feels broken when working with grids. I have a 3x1 and I want to toggle one of the cells off with a boolean on the visibility of the cell contents. Even though the cell height is set to hug, when it’s empty it seems to fallback to 1fr?

Hack around it: Add a line with 0% opacity within the frame. Then there’s an element for the height to ‘hug’.
 

Apolline
Active Member
March 31, 2026

Same issue with slots now 

Enisa Kajtazović
New Member
May 20, 2026

+1

 

Collapsing an empty frame to a minimum hight, as well!

Kerry_Johnson
Active Member
June 15, 2026

You guys already have an “Auto layout settings” panel, you should add a new option “Zero height when empty”.  I would imagine you had to write extra code to prevent this behavior from happening naturally, so add another code path that skips that logic.

 

 

Julia57
Active Member
June 18, 2026

@Kerry_Johnson agree, but I would argue that it should just be the default. I cant think of any reason why I would want it to be not-zero.