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

Posts: 32
Registered: ‎02-12-2013
My Device: Playbook
My Carrier: Rogers

ScrollView - disable scroll effect when there is sufficient space

[ Edited ]


I am trying to adapt my app UI from Z10 to Q10. Basically I plan to put the entire content inside a ScollView:

ScrollView {
    minHeight: 1280
    maxHeight: 1280
scrollViewProperties.scrollMode: ScrollMode.None Container { // main content goes here } }

That is 1280 px for the height of Z10's screen. When it comes to a Q10, it will scroll.

However, I still see the scroll sliding animation even if there is enough space on the Display. I don't want to see the scrolling in that case. Is there any way to disable the scrolling effect when the ScrollView has sufficient space to show its content?


Thanks in advance!


Edit: found the solution - you have to specify ScollMode.None for the scrollViewProperties.scrollMode and this will disable the scrolling effect.