How to add padding for vBoxContainer's?

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

enter image description hereMy hierarchy:

ScrollContainer → VBoxContainer → Checkbox

As you can see from the gif, it cuts off the edges.

A simple trick I did was:
Override the _draw() call inside VBoxContainer that loops over the child nodes and increase their x position by 5 or so pixels.

That way works fine, but when you do that, and then use the scrollbar… they have a tiny jitter whenever you scroll.

Try to make VBoxContainer bigger and play with Size Flags in inspector. Not sure if this will help.

Daniel Lewan | 2016-05-29 22:52