Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-13877] BlackBerry : Unable to scroll the scrollview till the last element or bottom

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2013-05-23T18:13:51.000+0000
Affected Version/sn/a
Fix Version/s2013 Sprint 11 BB, 2013 Sprint 11, Release 3.1.1, Release 3.2.0
ComponentsBlackBerry
Labelsmodule_scrollView, qe-testadded, sdk-bb
ReporterLokesh Choudhary
AssigneePedro Enrique
Created2013-05-15T22:23:25.000+0000
Updated2013-09-24T08:16:05.000+0000

Description

This is a regression. Description: 1. Create an app for BB with the following code:
var win = Titanium.UI.createWindow();
 
var scroll = Ti.UI.createScrollView({
    backgroundColor: '#ccc',
    width: Ti.UI.FILL,
    height: Ti.UI.FILL,
    layout: 'vertical',
     
});
 
function MyButton(title) {
    return Ti.UI.createButton({
        title: title,
        top: 10
    });
}
 
for(var i = 0; i < 100; i++) {
    scroll.add(MyButton('Button #' + (i + 1))); 
}
 
win.add(scroll);
win.open();
2. Build & run for BB simulator/device 3. After the app launches scroll till the bottom. Actual Result: 1. You can't scroll till the bottom or till the 100th button in the code above.You can only scroll till the 9th button i.e the size of the phone screen Expected result: 1. You should be able to scroll till the bottom

Comments

  1. Pedro Enrique 2013-05-20

    PR: https://github.com/appcelerator/titanium_mobile_blackberry/pull/41
  2. Pedro Enrique 2013-05-22

    Pull request merged into master and back ported to 3_1_X
  3. Lokesh Choudhary 2013-05-22

    Reopening as still can reproduce it. Environment: Ti Studio : 3.1.1.201305150313 Ti BB SDK : 3.1.1.v20130522151517 Mac OSX : 10.8.2 win 7 Win 8 Z10 BB simulator : 10.0.10.822 Z10 device running 10.0.10.88 Q10 Simulator : 10.1.0.1720 Q10 Dev alpha C device running 10.1.0.138
  4. Josh Roesslein 2013-05-23

    Tested with 3.1.1.v20130522190722 and it seems to work fine. Simulator: 10.1.0.1720 Lokesh you sure the selected SDK is correct? Recall I mentioned there might be a bug where the builder doesn't use the SDK version in the tiapp.xml file.
  5. Lokesh Choudhary 2013-05-23

    So figured out the issue is not with the scroll view not working but the layout crashes if we touch the scroll view before it has finished laying out the whole layout.Other wise the scroll view works as expected. Closing this issue & opening a new one for the layout. Environment: Ti Studio : 3.1.1.201305150313 Ti BB SDK : 3.1.1.v20130522190722 Mac OSX : 10.8.2 win 7 Win 8 Z10 BB simulator : 10.0.10.822 Z10 device running 10.0.10.88 Q10 Simulator : 10.1.0.1720 Q10 Dev alpha C device running 10.1.0.138

JSON Source