Skip to main content
Solved

Variant inside variant bug?


Federico_Romano

Im inserting a variant inside another variant.

  • The 1st variant has state changes that differ in width
  • That is supposed to also change the width of the 2nd variant, because 1st is inserted inside 2nd
  • In the variant definition area, it works correctly
  • When inserting a real instance of the component, it breaks

Jul-30-2021 11-00-59

Any idea of what i could be doing wrong? Is this a bug?

Best answer by Federico_Romano

it was already in “hug contents”, but i managed to solve it by adding an auto layout to each variant of the “line” component 🙂

View original
This topic has been closed for comments

3 replies

William_Renwick

I might be misunderstanding but I think you need to set the constraint inside the “row” variant to be “hug contents”?


Federico_Romano

it was already in “hug contents”, but i managed to solve it by adding an auto layout to each variant of the “line” component 🙂


  • 0 replies
  • August 29, 2021

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings