How to get component frame to resize/Hug when boolean properties are toggled on/off

If I have a component with two stacked boxes inside and i toggle the top one off, the outer frame doesn’t resize to the height of the bottom box even with height set to Hug.

Is there another way I should be doing this?

Thanks

Hi there,

Thanks for the post. If the outer frame has auto layout, it should be fine. I created a very simple video. Could you check where auto layout is used?

Am I understanding the issue you are describing correctly? Please let me know if I’m missing any additional points. I want to make sure I am fully addressing your questions.

Thanks,
Toku