Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-9804] MobileWeb: Setting the views property on ScrollableView causes a crash

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2012-06-27T10:25:31.000+0000
Affected Version/sRelease 2.1.0
Fix Version/sRelease 2.1.0, Sprint 2012-13 MW
ComponentsMobileWeb
Labelsn/a
ReporterBryan Hughes
AssigneeBryan Hughes
Created2012-06-26T09:56:48.000+0000
Updated2012-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;

Comments

  1. Bryan Hughes 2012-06-26

    Pull Request: https://github.com/appcelerator/titanium_mobile/pull/2470
  2. Bryan Hughes 2012-06-26

    2_1_X Pull Request: https://github.com/appcelerator/titanium_mobile/pull/2471
  3. Lokesh Choudhary 2012-06-27

    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

JSON Source