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.
12-11-2012 02:29 PM
Someone fill me in on the nature of each QML Page Component.
I assumed stacking components (ImageView, Label, TextArea, etc.) with a top-down direction will eventually cause the page to scroll vertically.
However, in my case, I created a page with a Page, then Container, then ImageView component with an image that takes about half the screen. I then added TextArea component with several paragraphs of text. But it seemed to squish my image vertically so it's not proportional and distorted. I think it did this to fit everything on the screen as now the TextArea cuts off right before my tab bar at the bottom.
But shouldn't the TextArea extend down to where the text ends, and the whole page should scroll for the user? Coincidentally, my goal is to keep the TextArea how that is and have it independently scroll with a smaller space taken. But the point is, I don't know why the image at the top was squished to do this. I fixed the issue with adjusting the image scaling, but shouldn't everything have an overflow and allow vertical scrolling by default?
Sorry if this is an obvious answer, but I'm still getting used to Cascades. Thank you.
Solved! Go to Solution.
12-11-2012 02:45 PM - edited 12-11-2012 02:46 PM
Actually I wouldn't expect a Page to scroll unless I had told it to scroll. Just different ways of looking at things I guess.
There is a separate ScrollView element, so you could add that to the page and insert your content into the ScrollView. Perhaps you could try that?
12-11-2012 02:48 PM
Great. I will try this. The reason I ask this is because in another QML Page, using the ListView had everything scroll automatically. I guess it's a difference of what ListView allows by default Vs. ImageView / TextArea.
12-11-2012 03:04 PM
12-11-2012 11:34 PM
Thanks you two. ScrollView definitely gave me what I was originally looking for. The only thing is, now that I have it, it appears to give me too much elasticity to the point where the whole page feels like a webpage, more than a stationary app. It could come in handy in the future though.
Peter, I took your suggestion and tried including
But it didn't seem to do anything for me. There wasn't an error or anything though. But using it still gave me the squished image when too many components are listed. I think my best bet is applying the image scale/height adjustments.
12-11-2012 11:47 PM
You could try wrapping your ScrollView inside a Container
It's possible to set preferred, minimum, and maximum sizes for a container, so that may give you the control you want.
So something like:
You can also wrap your content in Containers to help define their sizes also.
12-11-2012 11:53 PM
Yeah, that's what I did. Though I just wanted the TextArea component to show scrollin text at the bottom, so I wrapped it in a ScrollView.
Now everything is looking closer to how I want it.