Skip to main content
Question

Autolayout within component behaves differently when detached

  • January 24, 2024
  • 1 reply
  • 138 views

Hans_Nieuwenburg

I’d like instances of a component (variants with 2 sizes) within a container component (auto layout) to resize so that the space left is resized.

  • Changing variants in the container component it works fine.
  • Changing variants in instances of the container component it selects the other variant but the size does not change.
  • When detaching the container component and changing variants twice (?!) it works again…

What am I doing wrong? Any Different approaches?

Link to Figma design

This topic has been closed for replies.

1 reply

Hans_Nieuwenburg

Ah! I got it! the test-area components need to be auto-layout for them to resize in the container.

Hope this helps anybody…