Box not collapsing to the size I want it to be

Hello Axure Community!

I’m having an issue with an accordion.

I want the surrounding box to collapse and expand along with the content showing and hiding.

I have the file wired up to push and pull content for each checkbox.

Checkbox 1 is wired so the surrounding box expands to the correct size, but when it collapses, it’s smaller than I want it to be.

I’m taking the size of the surrounding box (290px) minus the content in Checkbox 1 (widget recOption1Content).

I can’t figure out where my math is wrong.

My goal is to make the containing box expand and contract with the showing and hiding of content for each checkbox.

Any help would be greatly appreciated!

Slider.rp (52.7 KB)

Hi @RainbowMoonbeams,

To set it back to the original size, you would want to set it back to 290px. Since 290px is already the original size, subtracting Content1.height from the original size will make it too small.

2 Likes

Duh. That makes total sense.

Thank you SKB!