Skip to main content
Solved

Auto layout instances don't hug content like in main component or detach instance

  • April 6, 2023
  • 1 reply
  • 1105 views

gimaf
  • New Participant
  • 9 replies

I don’t know why, but auto layout won’t work on instances, only on the main component or on the detach instance. Is it a known bug? is there a workaround, beside detatching the instance?

Best answer by Pavel_Kiselev

Your spacer has fixed dimensions. If you want dynamic size inside your instances than you need to make spacer hug contents by default. I place a simple rect with dimensions I need inside hug contents layout so the final size isn’t set on the component level, but it’s defined by internal layers.

View original
This topic has been closed for replies.

1 reply

Pavel_Kiselev
  • Power Member
  • 438 replies
  • Answer
  • April 6, 2023

Your spacer has fixed dimensions. If you want dynamic size inside your instances than you need to make spacer hug contents by default. I place a simple rect with dimensions I need inside hug contents layout so the final size isn’t set on the component level, but it’s defined by internal layers.


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