Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Reply
Contributor
Posts: 42
Registered: ‎05-30-2012
My Device: Simulator
My Carrier: Developer
Accepted Solution

How to center content in ScrollView?

Let's say that the content is smaller than the size of the ScrollView. By default, the content is aligned to the top left corner of the scroll view. How do I center it?

Contributor
Posts: 42
Registered: ‎05-30-2012
My Device: Simulator
My Carrier: Developer

Re: How to center content in ScrollView?

I should've thought of it before asking. Set its content to a Container exactly the same size as the ScrollView itself, and then use docking options.