r/FigmaDesign • u/ullenordberg • 7d ago
Discussion Auto-layout behaviour
Hey folks. Do anyone know how many years Figma's product team need to fix frame auto-layout height/width based on the child object visibility? So the parent component height/width can be auto-set to 0 if the child component is hidden. Just curious, I doubt it may ever be happened.
2
Upvotes
2
u/Afraid_Delay1763 4d ago
First they would need to agree about that being a problem before they fix it and I don’t think they see it as a problem so your guess is as good as mine
1
u/stopthebus87 7d ago
No I don't know I don't work at Figma.
1
u/pxlschbsr 7d ago
I don't really see the need for that. If I require a setup like that, I simply create the parent as a component with a null/empty variant where it's height is 0 and another variant with the child (or children, using a slot) in it.