Centering a text in a scrollbox?

Can you be a little bit more specific about what you’re trying to achieve?

If I understand what you’re asking, you could center the text using Appearance -> Justification -> Align Text Center.

And you could keep the text centered vertically by having a Spacer both above and below it inside the scroll box, with Slot -> Size set to Fill.

Is that what you’re after?