ScrollView Alignment

I have a scrollView which I add button to, but the buttons appear on the far left side of the scrollView, I would like them to be centered on the X axis, or in other words, alignment = “center”

local scrl = widget.newScrollView( {         width = 400,         height = 1000, } )

Update:

“leftPadding” doesn’t work, I’m disabling horizontal scrolling. 

Can you post your code for creating your buttons? Can you also post the code for positioning the scrollView?

Can you post your code for creating your buttons? Can you also post the code for positioning the scrollView?