Frames don't resize to zero height when their content is toggled off via a Boolean property

When creating a component with a frame that houses elements that can be toggled on/off using boolean properties, there is a problem when turning all of those element off. The container frame that is set to hug contents no longer resizes to zero. This means that the autolayout setting on the main component don’t work properly as they consider the empty frame to still be there.

Figma used to have these ‘empty’ frames collapse to zero height if their sizing was set to hug, but this no longer seems to happen.

Many libraries built on this premise will now experience a lot of bugs and issues as the behaviour has changed.

Hi @Dave_Fenner Hey, sorry to hear this is happening!

I would suggest reaching out to the support team directly via this form for help: https://help.figma.com/hc/en-us/requests/new

Be sure to use your Figma account email, include links to the file, and share it with support-share@figma.com so they can take a closer look. I would also recommend including a short video detailing the issue you are seeing as well.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.