I’m trying to use Figma auto layout wrap with components inside. I set the parent component width to have a fill property and set min-width and max-width values but the instances of the parent component are not inheriting the “fill container” property. Due to this minor issue I have to manually select every instance ( children components ) within auto layout and set the width to fill. Then it works. Why do I have to do this? why can’t I inherit the “fill container” from parent component?
Hey Elmiur, thank you for reaching out! Could you send me a screen recording of what you’re seeing on your end please?
If those components have no parent structures, i.e. they’re variants or main components, their fill property will not pass on to instances because they have no parent to reference their width from, so they automatically go into Hug mode, even if you place it inside an autolayout frame. Unfortunately this is unwanted behaviour but it is as Figma has always behaved in this case. Figma really should “touch” the components when they’re dragged from the component picker or library browser to have them fill according to their original rules depending on where they are being placed.