Skip to main content
Solved

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

  • April 6, 2023
  • 1 reply
  • 1156 views

gimaf

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.

This topic has been closed for replies.

1 reply

Pavel_Kiselev
  • Power Member
  • 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.