Expandable Text Block Error

Good Day!
I have an issue here with using expandable text boxes on the website. I set up the text boxes itself and they seem to work correctly. However, there is a problem with a page height behaviour. For some reason there is a big gap between the last strip on the website containing expandable text and the footer. I believe this is because of the difference in the strip height of collapsed and expanded text.
I would very much appreciate if you can help me with this issue.
Best regards

Hello!

A work around to solve this issue would be to set the height in the editor to the minimum height. set the full text using code, on page ready , this way when it collapses no extra space would appear.
check this answer.

Best
Massa