Skip to main content
Solved

Instance Component Auto Layout Behaviour


John_Vine

I have a master component (simple menu with icon left side, text right side) set up on auto layout so that when you hit Cmd + D on the icon and text auto layout frame that duplicated frame sits vertically in relation to the first frame, all inside the full component.

When I make an instance of that component and repeat the process (hit Cmd + D on that same text/icon frame), that new frame duplicates outside the component.

Anybody have any ideas?

Best answer by Antoine

Thatā€™t not how instances work. You canā€™t add or remove stuff in an instance (that would defy the purpose of instances). What you can do though is have a certain number of lines prepared in your master component (say 8), and hide/show them in your instance (you can use ā€œDeleteā€ for that but they will simply hide/show) to have the amount you need.

View original
This topic has been closed for comments

2 replies

Antoine
  • 144 replies
  • Answer
  • May 5, 2022

Thatā€™t not how instances work. You canā€™t add or remove stuff in an instance (that would defy the purpose of instances). What you can do though is have a certain number of lines prepared in your master component (say 8), and hide/show them in your instance (you can use ā€œDeleteā€ for that but they will simply hide/show) to have the amount you need.


John_Vine
  • Author
  • 1 reply
  • May 5, 2022

Many thanks for taking the time to reply Antoine, that was really helpful šŸ˜€


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