# Unity make an Expandable Scroll List (adding elements) [duplicate]

I am trying to make a scrollable list with premade elements that you can add using a button.
The problem is that the list's Content element needs to be exapanded as the list gets larger, and it's not made automatically.

If I expand the size of the list, it "works", more or less, because the list keeps expanded to a limited size, even if the list have only one element (for example), the list is scrollable until the maximum. And I don't want that result. I want to have the list as less expanded as possible, so it is only expanded until all elements are visible.

What do I need to do?