Skip to main content
Solved

Frame without visible content issue


As mentioned in closed topic https://forum.figma.com/t/bug-autolayout-resizes-incorrectly-when-it-contains-no-visible-frames/14619, Is anybody facing the same problem?

Imagem1
Imagem2

Even all contents inside “trailing-section” frame are invisible and frame resizing is set to “hug”, it still has 24 pixels of width.

Best answer by djv

Hey All, sorry for the lack of acknowledgement here!

Back in 2022, when the 1st topic was shared, the forum was primarily run by the community. With that being said, this a feature limitation at the moment, due to how a Frame keeps its size from a Main Component, once it no longer has any content within it.

There’s a bit of a workaround you can do with a Group, but it does cause issues where the Group isn’t taking up space like a Frame. But it will create the space between objects to be there.

In these types of situations, the only true workaround for this would be to add a Component Property that has the Frame hidden entirely, or depending on your design, you can make variants.

The workaround may vary depending on your file, so if this doesn’t help, please reach 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 a link to your file, and share edit access with support-share@figma.com, so the team can take a closer look.

View original
This topic has been closed for replies.

7 replies

Alamaki
  • 48 replies
  • March 12, 2024

The bug is still there. I think made a bug report about it way wack in 2022.
Your turn to scream into the void about it. 😀


fernandolins_cs

Frames with auto-layout inside of components will not change their sizes relative to their contents, only their parents will. You have to hide “trailing-section” and not its contents. Also please check that in the main component it is set to hug and not only on an instance.


Hi, Fernando! That´s main component. The alternative of hide “trailing section” doesn’t fit for me because each child element has its own boolean propertie.


Hi Alamaki! I had to open another topic because yours was closed with out responses. I hope this time this issue get more attention. 🙂


Diana_Tatarenko

Any updates on how to solve this?
I don’t want to hide the parent frame since it removes the option to toggle on the elements inside and reveal them.


djv
Figmate
  • Community Support
  • 4911 replies
  • Answer
  • May 29, 2024

Hey All, sorry for the lack of acknowledgement here!

Back in 2022, when the 1st topic was shared, the forum was primarily run by the community. With that being said, this a feature limitation at the moment, due to how a Frame keeps its size from a Main Component, once it no longer has any content within it.

There’s a bit of a workaround you can do with a Group, but it does cause issues where the Group isn’t taking up space like a Frame. But it will create the space between objects to be there.

In these types of situations, the only true workaround for this would be to add a Component Property that has the Frame hidden entirely, or depending on your design, you can make variants.

The workaround may vary depending on your file, so if this doesn’t help, please reach 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 a link to your file, and share edit access with support-share@figma.com, so the team can take a closer look.


Jess_Bellatti

Hi! Is this still a feature limitation? If so, how do we up-vote this??


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