[TIMOB-11477] iOS: Scrollview - App crash on launch
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Duplicate |
Resolution Date | 2012-10-14T06:45:27.000+0000 |
Affected Version/s | Release 3.0.0 |
Fix Version/s | n/a |
Components | iOS |
Labels | module_scrollview, qe-ios100112, qe-testadded, regression |
Reporter | Olga Romero |
Assignee | Vishal Duggal |
Created | 2012-10-13T21:33:05.000+0000 |
Updated | 2014-06-19T12:44:33.000+0000 |
Description
An application crashes on launch.
Tested module Scrollview.
*it is a regression, works as expected in 2.1.3*
Test steps:
1. Run the code below:
var win = Ti.UI.createWindow({backgroundColor:'white'});
win.open();
var scrollView = Ti.UI.createScrollView({
contentWidth: 2000,
backgroundColor: 'black',
layout: 'horizontal'
});
win.add(scrollView);
var view1 = Ti.UI.createView({
backgroundColor: 'blue',
height: 400,
// for 2.0
width: Ti.UI.SIZE,
// for 1.8
// width: 'auto',
layout: 'horizontal'
});
scrollView.add(view1);
for(var i = 0, j = 20; i < j; i++){
view1.add(Ti.UI.createView({
backgroundColor: 'red',
width: 100,
height: 400,
left: 40
}));
}
Actual result:
Crash.
Expected result:
No crash, and a window opens with vertical red views
Closing as Duplicate