Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-11477] iOS: Scrollview - App crash on launch

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionDuplicate
Resolution Date2012-10-14T06:45:27.000+0000
Affected Version/sRelease 3.0.0
Fix Version/sn/a
ComponentsiOS
Labelsmodule_scrollview, qe-ios100112, qe-testadded, regression
ReporterOlga Romero
AssigneeVishal Duggal
Created2012-10-13T21:33:05.000+0000
Updated2014-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

Comments

  1. Olga Romero 2012-10-17

    Closing as Duplicate

JSON Source