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

Nelson_Vasconcelos2
December 22, 2023

This is a very frustrating bug and should be fixed. It affects the usage of boolean properties.

Philip16
December 23, 2023

Ran into this error today as well… It was not that big of a deal, since i just built a separate component for my case, but still when you are in the hour before the deadline of your final Bootcamp presentation, these kind of bugs aren’t something you want to figure out in this kind of situation… 🤭

FlorianModel
New Participant
December 26, 2023

Bot sure if it’s a bug. I often use empty AL containers similar as one would use an empty div container: A placeholder for things that might appear in that section but are currently not visible.

MichaelF
New Participant
February 6, 2024

bump so that this topic will not auto-close.

stevekulaga
New Member
February 12, 2024

+1. This bug forces me create another frame with another boolean prop to hide the empty frame.

Aaron5
February 15, 2024

+1. This is super frustrating. A container set to size to its contents that has no contents should be zero.

I have a stack of components that I need its autolayout parent container to hug vertically, and it can’t because its children are taking up phantom space. Makes no sense.

Seamoose
New Member
February 15, 2024

I cannot believe this is the condition of this feature.

Andrew_Elliot
New Member
February 22, 2024

Just encountered this too. This should behave the same as CSS whereby display: none child elements don’t affect the height of the parent, so the parent collapses in height if all children are not displayed

Dustin_Hansen1
New Participant
February 26, 2024

Just adding another +1 to keep this issue open

If the frame height is set to “Hug” it shouldn’t have a height when it’s empty or when the elements inside it are hidden.

Ben_Smeets
Active Member
February 29, 2024

This is the challenge with Figma lately, all the focus goes to random new “features” but less attention to stuff that (even after years) is still not working 100%… sigh.