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


Thank you for visiting the BlackBerry Support Community Forums.

BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)

BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.

"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."

- Kevin Michaluk, Founder, CrackBerry.com

Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.


Reply
Developer
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
ScrollView{
    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
            }
            Label{
	        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??

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

Re: ScrollView width limit

Hey
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.