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: 89
Registered: ‎10-18-2012
My Device: BB Z10
My Carrier: -
Accepted Solution

ScrollView width limit

Hi all,

I have a CustomControl based in that QML:


import bb.cascades 1.0
    scrollViewProperties.scrollMode: ScrollMode.Horizontal
    scrollViewProperties.pinchToZoomEnabled: false
    horizontalAlignment: HorizontalAlignment.Fill
    Container {
	    verticalAlignment: VerticalAlignment.Center
	    background: Color.create("#eeeeee")
	    objectName: "ticker_container" 
	    layout: StackLayout {
	        orientation: LayoutOrientation.LeftToRight
	    leftPadding: 30.0
	    rightPadding: 30.0
	    topPadding: 10.0
	    bottomPadding: 10.0
            horizontalAlignment: HorizontalAlignment.Fill
            layoutProperties: StackLayoutProperties {
               spaceQuota: 1
	        verticalAlignment: VerticalAlignment.Center
	        text: "Results: "


I add a lot of labels to the container programatically, up to 81 in my tests.

The problem is that when I add more than about 40 labels, the labels begin to narrow and clip their text.


There is any limit the the ScrollView width??

Posts: 27
Registered: ‎08-05-2010
My Device: 9700

Re: ScrollView width limit

I get the same issue.
I add images to my scroll view (container in scroll view), and after some number of insertions every image begins to narrow.
I found out with viewableAreaChanged signal that the max width of scrollview is 16383 pixels ( +/- 1-2 pixels).
And I guess it is really limited.
Hope it is temporary.