How can I make a container box automatically resize to fit a repeater inside it?

Hi,
I have recently implemented dark mode on my home page (using the Wix example: https://www.wix.com/velo/example/dark-mode).

To do this, I have had to fit my entire home page in a container box.
I also have a repeater on my home page, users can filter that repeater using dropdowns, sliders, etc. However, when the repeater resizes, the container box does not.

So if the repeater gets longer, the container box does not. If the repeater gets shorter, there is a massive blank space at the bottom of the page.
I am pretty sure I have attached the repeater to the container box, but it still does not work.

Could anyone help me with this?

I am learning Javascript so any help (code or not) is much appreciated :slight_smile:

1 Like

I’ve got the same problem. A repeater with a dynamic size that I need to be “contained” in a container…
Did you solve this? Can anyone give any tips on this?

I can’t remember if I solved it or not, but try this:

  1. Move the repeater outside of the box, onto the page, release it when it says “Attach to page”

  2. Move the repeater back onto the box, and release when it says “Attach to box”

Let me know if this works :slight_smile:

@alexobc This worked!
Thanks!!