- 12-27-2012, 01:20 AM
Thread Author #1
Scrolling
Hi guys,
Once again I find myself pwned
I tried to make a container with a question, an image and 4 options. Then when I made another one of the previously mentioned container on the same page, I find myself unable to scroll down to the second container in the simulator. What do I use to fix this problem?
Same problem with another one of my pages where I have lots of text displayed with Labels { }. Can't scroll down and the text just cuts off.... multiline is set to true!
Code:// Tabbed Pane project template import bb.cascades 1.0 Page { id: lola titleBar: TitleBar { title: "101" } content: Container { layout: StackLayout {} Label { text: qsTr("<main_question>") } Container { id: q1 verticalAlignment: VerticalAlignment.Top horizontalAlignment: HorizontalAlignment.Center maxWidth: 700.0 preferredWidth: 700.0 layout: DockLayout {} minHeight: 1000.0 Label { text: "<put some random question here>" multiline: true } ImageView { imageSource: "asset:///images/name_structure.png" horizontalAlignment: HorizontalAlignment.Center } RadioGroup { Option {id: q1_answerOption1; text: "OPT" } Option {id: q1_answerOption2; text: "OPT" } Option {id: q1_answerOption3; text: "OPT" } Option {id: q1_answerOption4; text: "OPT" } translationY: 425.0 } } Container { id: q2 verticalAlignment: VerticalAlignment.Top horizontalAlignment: HorizontalAlignment.Center maxWidth: 700.0 preferredWidth: 700.0 layout: DockLayout { } minHeight: 1000.0 Label { text: "<another question>" multiline: true } ImageView { imageSource: "asset:///images/name_structure.png" horizontalAlignment: HorizontalAlignment.Center } RadioGroup { Option {id: q2_answerOption1; text: "OPT" } Option {id: q2_answerOption2; text: "OPT" } Option {id: q2_answerOption3; text: "OPT" } Option {id: q2_answerOption4; text: "OPT" } } } } } - 12-27-2012, 10:43 AM #2
Put everything inside of a ScrollView{}
Check out my BB10 Cascades Coding Site: http://BBcascades.com/ Blog: http://bbcascadescode.tumblr.com/
My Apps: The Dive Plan (Built for BlackBerry Approved) | Visual Connection | Combo Pics | Beer Math | Random Stories | Logic PuzzlesThanked by:DisturbedRocks31 (12-27-2012)
- 12-27-2012, 11:08 AM
Thread Author #3
It's still not scrolling... I added the ScrollView and still the same thing :S
Awesome blog, very useful when I was starting out! - 12-27-2012, 11:44 AM #4
This should work.
Code:// Tabbed Pane project template import bb.cascades 1.0 Page { id: lola titleBar: TitleBar { title: "101" } content: ScrollView { Container { layout: StackLayout {} Label { text: qsTr("<main_question>") } Container { id: q1 verticalAlignment: VerticalAlignment.Top horizontalAlignment: HorizontalAlignment.Center maxWidth: 700.0 preferredWidth: 700.0 layout: DockLayout {} minHeight: 1000.0 Label { text: "<put some random question here>" multiline: true } ImageView { imageSource: "asset:///images/name_structure.png" horizontalAlignment: HorizontalAlignment.Center } RadioGroup { Option {id: q1_answerOption1; text: "OPT" } Option {id: q1_answerOption2; text: "OPT" } Option {id: q1_answerOption3; text: "OPT" } Option {id: q1_answerOption4; text: "OPT" } translationY: 425.0 } } Container { id: q2 verticalAlignment: VerticalAlignment.Top horizontalAlignment: HorizontalAlignment.Center maxWidth: 700.0 preferredWidth: 700.0 layout: DockLayout { } minHeight: 1000.0 Label { text: "<another question>" multiline: true } ImageView { imageSource: "asset:///images/name_structure.png" horizontalAlignment: HorizontalAlignment.Center } RadioGroup { Option {id: q2_answerOption1; text: "OPT" } Option {id: q2_answerOption2; text: "OPT" } Option {id: q2_answerOption3; text: "OPT" } Option {id: q2_answerOption4; text: "OPT" } } } } } } - 12-27-2012, 12:04 PM
Thread Author #5
Yeahhh that worked! Thanks a lot!
Similar Threads
-
scrolling-question
By prosport in forum BlackBerry 8830 WEReplies: 3Last Post: 08-28-2007, 09:10 PM -
Scroll Left/Right?
By tessa1175 in forum IntroductionsReplies: 1Last Post: 07-11-2007, 07:19 AM -
Scroll Ball
By adianshadows in forum BlackBerry Curve 83xxReplies: 1Last Post: 07-08-2007, 02:42 PM -
scroll wheel issue
By nappynad in forum BlackBerry 8800, 8820Replies: 2Last Post: 06-30-2007, 12:18 AM -
Scrolling through photos on a Curve
By monkeypack in forum BlackBerry Curve 83xxReplies: 4Last Post: 06-18-2007, 04:55 PM

Reply
















