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.

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.

1 Like

Thank you, this helped me!

1 Like