How to center multline text in scrollview?

Hello,

I know how to center text on the screen like below:

 lblDescr = display.newText( Descr2, 320, Top8, native.systemFont, 26 ) lblDescr:setFillColor( 0, 0, 0 ) lblDescr.anchorX = 0.5 lblDescr.anchorY = 0 scrollView:insert( lblDescr )

This works great for a single line of text. When I make it multiline and set the additional parameters for the width of it in the first line it does not center. Am I missing something? I am placing this in a scrollview but I would not think anything matters this way.

 lblDescr = display.newText( Descr2, 320, Top8, 500, 0, native.systemFont, 26 ) lblDescr:setFillColor( 0, 0, 0 ) lblDescr.anchorX = 0.5 lblDescr.anchorY = 0 scrollView:insert( lblDescr )

Thanks,

Warren

Nevermind, used the align parameter from the docs and works now.

Nevermind, used the align parameter from the docs and works now.