Resizable Repeater in Wix Studio

Question:
i need to have a repeater resizable vertically, based on a collapsable container inside the repeater. so if the container is in collapse the the repeater shrink up to last element in repeater.

i tired VELO code as well but the repeater not changing its height.
any suggestion or solution?

Product:
[Which editor or feature is your question most relevant to? e.g. Wix Editor, Wix Studio Editor.]

What are you trying to achieve:
[Explain the details of what you are trying to achieve. The more details you provide, the easier it is to understand what you need.]

What have you already tried:
[Share resources, forum topics, articles, or tutorials you’ve already used to try and answer your question.]

Additional information:
[Include any other pertinent details or information that might be helpful for people to know when trying to answer your question.]