Scroll Rect which changes size of the number of buttons

Hello, everyone! I’m making a simpe dialogue system and i want to change the size of scrollview (not the content), but the scroll view according to amount of buttons with answers. How is it possible? content size fitter doesn’t help :frowning:

Try to draw what i want to do. On the left side of image there are 3 buttons, so scroll view is long, but on the right side there is only one button, so scroll view is short.