How to change the separation in the ScrollContainer?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By mateusak
:warning: Old Version Published before Godot 3 was released.

By default buttons are placed directly under each other. Is there a way to increase/decrease this separation? So each button are 1 pixel apart from each other for example.

:bust_in_silhouette: Reply From: volzhs

You can make it with V(H)BoxContainer and it’s Separation property

ScrollContainer
    - VBoxContainer (or HBoxContainer)
        - Button
        - Button
        - Button

Thank you! I tried that before, but it seems my VBoxContainer had been set to a custom separation of 0, so when I modified it in the theme it didn’t affect it.

mateusak | 2017-01-05 06:20