[TIMOB-11476] iOS: Crash on launch
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Critical |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2012-12-21T05:14:28.000+0000 |
Affected Version/s | Release 3.0.0 |
Fix Version/s | Release 3.0.0, Release 3.1.0, 2012 Sprint 21 API, 2012 Sprint 21 |
Components | iOS |
Labels | api, module_scrollview, qe-ios100112, qe-testadded, regression |
Reporter | Olga Romero |
Assignee | Vishal Duggal |
Created | 2012-10-13T21:12:00.000+0000 |
Updated | 2012-12-21T05:14:28.000+0000 |
Description
An application's crash on launch in module scrollview.
*It is regression, not happening in 2.1.3*
Test steps:
1.Run this code
var scrollView = Ti.UI.createScrollView({
contentWidth: 320,
contentHeight: 'auto',
layout: 'horizontal'
});
var things = [
'item1',
'item2',
'item3',
'item4',
'item5',
'item6' ];
for (var i = 0; i < things.length; i++) {
var view = Ti.UI.createView({
height: 90,
width: 140,
top: 10,
left: 10,
backgroundColor: '#CCC'
});
scrollView.add(view);
};
var win = Ti.UI.createWindow();
win.add(scrollView);
win.open();
Actual result:
App crash
Expected result:
App should not crash and
the 'views' added to scrollView should fall underneath each other, creating tiles going down the window.
parent->child->parent loop on autoHeight calculations.
Master PR https://github.com/appcelerator/titanium_mobile/pull/3225 3_0_X PR https://github.com/appcelerator/titanium_mobile/pull/3226
CR & FR
Closing as fixed. Tested on: Titanium Studio, build: 3.0.0.201210151149 Titanium SDK, build: 3.0.0.v20121017102440 Device: iPhone5 ios 6.0 iPhone4s ios 6.0