Repeater still using space where no items are displayed when showing only some of the connected collection

I’m trying to set up a repeater to display some of the items in a collection, with a Load More button to continue adding to the results.

So here’s what I’m working with.

  1. Database that has around 20 items

  2. Dataset that is set to display 4 items

  3. Repeater that has several elements inside with the show more button beneath this repeater. Below this button are more page elements.

When I preview (or publish), it loads the first 4 items in the repeater but it seems like it still allocates enough screen space to show all 20 items because below these 4 items there’s only blank screen space and I have to scroll way down to get to my button. Once I click the button, I scroll back to the top to see that indeed it is displaying 8 items.

How do I get it to collapse? the items that are not actually being shown or whatever is happening?

Anything else I’m missing?

Thanks in advance!

You have posted this in the Wix Corvid, so first question is to know if you have used any code for this or have you simply set it all up using your repeater and dataset settings?

If you have used any code for it then please post it up along with any screenshots that you think will help too.

Note, that it might be a good idea to have your dataset wrapped up in your pages onReady function so that the page and dataset load first.
https://www.wix.com/corvid/reference/wix-dataset.Dataset.html#onReady
Something like this…

$w.onReady( () => {
$w("#myDataset").onReady( () => {
console.log("The dataset is ready");
});
});

If you haven’t used code, then have you simply gone through the Wix Support pages like these here for setting up the load more button for a repeater?

Ok, so after looking over everything again, I determined that’s it’s not a problem with this function at all, it’s a problem with a confilcting repeater using the space. I will have to do more engineering.

Sorry for the question, and thanks for the quick response!