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
Developer
Posts: 262
Registered: ‎07-13-2012
My Device: PlayBook, DA B, DA C, LE Z10 #102, Q10, Z30
My Carrier: T-Mobile
Accepted Solution

Progamatically scroll to the top of a ScrollView

Is there a way to programatically scroll to the top of a ScrollView? I didn't see any property in ScrollView that is the "top" and I'd prefer to do it in QML only... thoughts?

---
Check out my BB10 Cascades Coding site: BBcascades.com & Cascades Blog: bbcascadescode.tumblr.com

My Built for BlackBerry app: The Dive Plan
Developer
Posts: 1,523
Registered: ‎12-18-2012
My Device: Z30, Z10 LE, DevAlpha C, PlayBook

Re: Progamatically scroll to the top of a ScrollView

[ Edited ]

Did you try scrollToPoint(0, 0, ScrollAnimation.Default) ?


Andrey Fidrya, @zmeyc on twitter
Developer
Posts: 262
Registered: ‎07-13-2012
My Device: PlayBook, DA B, DA C, LE Z10 #102, Q10, Z30
My Carrier: T-Mobile

Re: Progamatically scroll to the top of a ScrollView

Nooo.... but that works like a charm. Thanks for the quick solution.
---
Check out my BB10 Cascades Coding site: BBcascades.com & Cascades Blog: bbcascadescode.tumblr.com

My Built for BlackBerry app: The Dive Plan