Skip to main content

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


Show first post

105 replies

Mahdi Rahman

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.


andrew.taylor

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

 


Antoine
  • Author
  • Active Member
  • 147 replies
  • July 22, 2025

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


Ashley_Presman

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. 


Jessica van t Erve

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


Reply


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