Collapsing hidden elements with differents heights

Hi,
I’m facing an issue regarding the collapsing hidden elements with differents heights.
I understood perfectly how the collapsing element tool work but I can’t figure out how to make it work with differents heights elements.
As you can See on the picture,


I would like to create a clickable menu that would unrolled some elements:
I am not facing any issue to collapse same size element (2)
But as the collapsed element of (1) are of differents sizes there is a space that is created that I can’t remove.

The element of the picture aboveis the longest one so facing no issue to collapse.
But the smallest one, have a large space that I can’t get rid of. See :

Do you have any idea on how I could process to avoid this spaces?

I already made all my elements fixed width…
Thank you in avance for your help.

This topic was automatically closed after 70 days. New replies are no longer allowed.