[TIMOB-10049] Android: ScrollView - Device rotation causes crash on Android
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Cannot Reproduce |
Resolution Date | 2013-03-02T11:05:57.000+0000 |
Affected Version/s | Release 2.1.1 |
Fix Version/s | Release 3.0.2 |
Components | Android |
Labels | api, qe-and070112 |
Reporter | Tamila Smolich |
Assignee | jithinpv |
Created | 2012-07-19T17:55:20.000+0000 |
Updated | 2017-03-17T18:37:27.000+0000 |
Description
Description:
During ScrollView testing I noticed, that device rotation causes application crash.
This is not a regression. The behavior exists as far back as 1.8.2 at least.
Steps to reproduce:
1. Run the following code:
var data = [];
var win = Ti.UI.createWindow();
var row = Ti.UI.createTableViewRow({
className : 'scrolltab',
height : 67,
backgroundColor : '#fff',
selectionStyle : Ti.UI.iPhone.TableViewCellSelectionStyle.NONE
});
var scrollView = Titanium.UI.createScrollView({
contentWidth:500,
contentHeight:50,
top:10,
height:50,
width:230,
borderRadius:10,
backgroundColor:'#13386c'
});
row.add(scrollView);
var view1 = Ti.UI.createView({
backgroundColor:'#336699',
width:440,
height:40,
left:10
});
scrollView.add(view1);
// add a bunch more views to the scrollView
data.push(row);
feedTableView = Titanium.UI.createTableView({
data:data
});
win.add(feedTableView);
win.open();
2. Rotate device
Actual result:
Application crashes
Expected result:
Application should not crash
Issue does not reproduces with Titanium Studio, build: 3.0.1.201212181159 Titanium SDK version: 3.1.0 (03/11/13 15:43 0c88429) Titanium SDK version: 3.0.2 (02/07/13 16:46 a4def81) Device: Samsung galaxy s duos Android version: 4.0.4 Android Emulator: Android SDK version: 2.2
Closing ticket as the issue cannot be reproduced.