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

+1. Currently using the 0px Frame hack as a workaround.

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

1 Like

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… :face_with_hand_over_mouth:

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.

1 Like

bump so that this topic will not auto-close.


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

1 Like

+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.

1 Like

I cannot believe this is the condition of this feature.

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

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.

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.