Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-13967] BlackBerry : Layout crashes if we touch the views before it finishes laying out the whole layout

GitHub Issuen/a
TypeBug
PriorityCritical
StatusClosed
ResolutionFixed
Resolution Date2013-05-24T21:06:26.000+0000
Affected Version/sRelease 3.1.1, Release 3.2.0
Fix Version/s2013 Sprint 11 BB, 2013 Sprint 11, Release 3.1.1, Release 3.2.0
ComponentsBlackBerry
Labelsblackberry, qe-testadded, sdk-bb
ReporterLokesh Choudhary
AssigneeJosh Roesslein
Created2013-05-23T19:01:45.000+0000
Updated2013-09-26T10:48:50.000+0000

Description

Description: 1. Create an app for BB with the code below:

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 it on a BB device. 3. Immediately after the app launches & you see the scrollview touch & try to scroll the scroll view. (make sure this happens before all the layout is complete) Actual results: 1. The layout crashes & the scroll view does not scroll anymore 2. If you wait for the whole layout to complete & then touch the scroll view then everything works fine Expected Results: 1. The layout should not crash

Comments

  1. Josh Roesslein 2013-05-24

    Created pull request [#56](https://github.com/appcelerator/titanium_mobile_blackberry/pull/56) for master.
  2. Lokesh Choudhary 2013-05-28

    Verified the fix and the scroll view does not lockup when touched before it finishes rendering the controls. Environment: Ti Studio : 3.1.1.201305150313 Ti BB SDK : 3.1.1.v20130524180421 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