Skip to main content
Solved

Change from "Space Between" to "Packed" in component properties


I’m currently playing around with component properties, and I’m struggling with components that have a fixed width, and use the “Space Between” spacing mode to distribute items.

In the example below, the “Cohort” and “Options” are both inside of an autolayout, with its settings set to “space between”.

The “Optional” text is using a boolean component property (to toggle it off and on). However, when I toggle it off, my “Cohort” becomes centered.

Is there anyway to prevent this from happening? Ideally I would want my “Cohort” to always be pinned to the left.

Best answer by bugsyb

Nevermind — I found a solution right after I posted this. If I set the “Cohort” to “fill container” it will expand as soon as the “Optional” text gets toggled off. That ends up fixing this problem.

View original
This topic has been closed for replies.

2 replies

  • Author
  • 2 replies
  • Answer
  • June 21, 2022

Nevermind — I found a solution right after I posted this. If I set the “Cohort” to “fill container” it will expand as soon as the “Optional” text gets toggled off. That ends up fixing this problem.


lee_garkusha

Thank you, this helped me!


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