UMG ScrollBox based on the number of widget

Hi everybody
I’d like to know if there’s a way to create a ScrollBox which size are based on the number of widget i want to have on it.
Well, probabily my english is bad and you don’t know what I want. So here an example

SCROLLBOX n.1
X X

X X

SCROLLBOX n.2
X X

X X

X

X = button/widget

As you can see I’d like to have a scrollbox with different shapes and size based on the number of button I have. I’d like to have 2 columns and a number of row based on the number of widget. Can anyone help me?

Lorenzo