Figma Support Forum

Swapping variants (for ex on click) does not update autolayout of the parent

If 2 variants are of a different size and you set up switching between the variants on click or hover for example, then what happens is that the variant does swap into second, but it’s parent does not adjust autolayout accordingly and assumes the size of the first variant.

A post was merged into an existing topic: Variants size not being factored into parent auto layout