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

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?