GitHub Issue | n/a |
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2013-02-27T22:57:42.000+0000 |
Affected Version/s | Release 2.1.4, Release 3.0.0, Release 3.1.0 |
Fix Version/s | Release 3.1.0, 2013 Sprint 05 API, 2013 Sprint 05 |
Components | Android |
Labels | community, exalture, qe-testadded |
Reporter | Federico Casali |
Assignee | Sunila |
Created | 2012-12-14T11:48:45.000+0000 |
Updated | 2014-06-19T12:42:40.000+0000 |
Problem description
When including a view that contains the property "borderRadius" in a ScrollableView, the app crashes.
Steps to reproduce
Create a scrollableView with a view containing the borderRadius property.
App crashes when opening and scrolling through views.
var win = Titanium.UI.createWindow();
win.backgroundColor = '#ccc';
var view1 = Ti.UI.createView({
backgroundColor:'red'
});
var l1 = Ti.UI.createLabel({
text:'View 1',
color:'#fff',
width:'auto',
height:'auto'
});
view1.add(l1);
var view2 = Ti.UI.createView({
backgroundColor:'blue'
});
var l2 = Ti.UI.createLabel({
text:'Click Me (View 2 - see log)',
color:'#fff',
width:'auto',
height:'auto'
});
view2.add(l2);
var view3 = Ti.UI.createView({
backgroundColor:'green',
borderRadius:00
});
var l3 = Ti.UI.createLabel({
text:'View 3',
color:'#fff',
width:'auto',
height:'auto'
});
view3.add(l3);
var view4 = Ti.UI.createView({
backgroundColor:'black'
});
var l4 = Ti.UI.createLabel({
text:'View 4',
color:'#fff',
width:'auto',
height:'auto'
});
view4.add(l4);
var scrollView = Titanium.UI.createScrollableView({
views:[view1,view2,view3,view4],
showPagingControl:true,
pagingControlHeight:30,
maxZoomScale:2.0,
currentPage:1
});
win.add(scrollView);
win.open();
Using TiSDK 2.1.4 GA the crash is immediate when launching the app.
Using TiSDK latest 3.1 CI, the app starts but it crashes with the same exception message after scrolling through views a few times.
pull request https://github.com/appcelerator/titanium_mobile/pull/3902
App remains stable and doesn't crash while scrolling. Verified on: Device : Google Nexus, Android Version: 4.1 SDK version: 3.1.0.v20130311192922 CLI version : 3.0.24 OS : MAC OSX 10.7.5 XCode : 4.5.1