Footer set new heigt by collapsing elements

Hey,
I have a lot of collapsing elements on my page, but if they’re all collapsed the footer stays on it’s old position and doesn’t set a new page height.


That’s my code:

function Collapse() {
 let collapse = $w('#dataset1').getTotalCount();

 if (collapse === 0) {
        $w("#Box1").collapse();
        $w("#Repeater1").collapse();
        $w("#Strip1").collapse();
        $w("#button14").collapse();
    } else {
        $w("#Box1").expand();
        $w("#Repeater1").expand();
        $w("#Strip1").expand();
        $w("#button14").expand();
    }

Hello,

Most issues like these should be resolved by double-clicking the Adjust Page Height handle.

If the issue persists, I’d recommend you to open a ticket and provide all the details regarding it to Wix Customer Care.

https://support.wix.com/en/article/contacting-wix-customer-care-for-support

Thank’s I resolved the problem.
I deleted everything from the page and adjusted the footer on the top, unter the header.
Then I pasted all my elements and it worked. I thinks that’s a problem from wix