[TIMOB-9804] MobileWeb: Setting the views property on ScrollableView causes a crash
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2012-06-27T10:25:31.000+0000 |
Affected Version/s | Release 2.1.0 |
Fix Version/s | Release 2.1.0, Sprint 2012-13 MW |
Components | MobileWeb |
Labels | n/a |
Reporter | Bryan Hughes |
Assignee | Bryan Hughes |
Created | 2012-06-26T09:56:48.000+0000 |
Updated | 2012-06-27T11:36:23.000+0000 |
Description
Setting the views on a scrollable view using the views property causes a crash.
var win = Ti.UI.createWindow({
backgroundColor:'white',
title: "yo"
});
var makePage = function(n) {
var v = Ti.UI.createView({backgroundColor: n});
v.add(Ti.UI.createLabel({text: n, color: 'white'}));
return v;
}
var views = ["blue", "green", "red"].map(makePage);
var scrollable_view = Ti.UI.createScrollableView({views:views, showPagingControl:true });
win.add(scrollable_view);
win.open();
debugger;
Pull Request: https://github.com/appcelerator/titanium_mobile/pull/2470
2_1_X Pull Request: https://github.com/appcelerator/titanium_mobile/pull/2471
Verified the issue in the environment below & found that it does not crash by setting views property on scrollableview. Titanium Studio : 2.1.0.201206251749 SDK version : 2.1.0.v20120626204252 Chrome : 19.0.1084.56 Iphone safari android 2.3.6