Can't resize properly

I have a panel, which has a bunch of buttons as Child, i want the panel to resize so that the buttons fit perfekt. but if i asign a conten size fitter it just shrinks the panel to nearly nothing, i tried to add a vertical layout group, which causes the buttons be tottaly deformed. then i tried to turn of the child expansion, but that shrinks my buttons to nearly nothing.

How can i resize the Panel to fitt the buttons without destroying the burrons ?

You simply have to make the anchor of your gui elements the size of that gui element. Then they should resize properly.