Skip to main content

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?

We need if/else relative functionality for boolean properties, or at least having  a toggle in auto layout frame setting to hide a frame when it is empty.


+1 for this fix. I have an older component that was using too many variants that I’m cleaning up and the older comp works how we intend it to but when I create the new one with more boolean properties then the container won’t collapse (outlined in Red). I’m pulling my hair out. 

 

The top screen shot shows the row 2 layer and it’s children hidden. The comp then was responsive and hugged the contents visible.

 

The bottom screen shows the row 2 layer and it’s children hidden but the comp doesn’t respond and hug. 

 


3 years later and still no solution, c’mon Figma!


Please fix! I just had to create 80+ additional variants due to this issue and will have to follow this pattern for other components as well. 


+1 for solving this. Even with the workaround it doesn’t actually work.  


+1. i would love to have this fixed. lost a chunk of time today figuring this out.


Please fix it, we beg you