How to use scroll container?

Godot Version: 4.8 beta3

Helloooooooooo Guys :clap:t2: how are you today

Question

I want to use scroll container for scrollable main menu levels selection can you help me how to use it

what is a best scene root tree structure for my scroll container and in this i add buttons with their icon

For problems like these, use the official tutorials.

To use scroll container add another container like vbox or hbox, and then place your buttons with their icons in that container.

Like
Scrol Container
|-VBoxContainer
|- - Button1
|- - Button2

Also, don’t forget to add minimum size to your scroll container.

brother this is a problem when i add text to the button instead of icon the padding is not applied like

|Button 1|

but i want to add padding from top bottom left right in buttons like

| Button1 |

how i can add padding in buttons with text instead of increasing their size