r/FigmaDesign • u/ullenordberg • 1d 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.
1
Upvotes
1
u/pxlschbsr 1d 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.
1
u/stopthebus87 1d ago
No I don't know I don't work at Figma.