Project: titanium
Issue TIMOB-20138: Consecutive calls to ScrollableView.setViews causes the app to become unresponsive
Following a typical cycle of having a default view inside a scrollable view and then updating it calling setViews() fails and causes the app to become unresponsive. Tested on iOS > 8.4 Same effect if you try with a very short delay between the two calls. Code below works fine in 5.0.2.GA but not in 5.1.0/5.1.1 {code} (function() {	var window = Ti.UI.createWindow();	var mainView = Ti.UI.createView({	backgroundColor:'#fff',	width:Ti.UI.FILL,	height:Ti.UI.FILL	});	var scrollableView = Ti.UI.createScrollableView({	borderColor:'green',	views:undefined,	width:Ti.UI.FILL,	height:'60%'	});	var viewA = Ti.UI.createView({	backgroundColor:'black'	});	var colors = ['red', 'green', 'blue'];	var viewsB = [];	for(var i = 0;i<3;i++){	viewsB.push(Ti.UI.createView({	backgroundColor:colors[i]	}));	}	scrollableView.setViews([viewA]);	mainView.add(scrollableView);	window.add(mainView);	window.open();	scrollableView.setViews(viewsB);	})(); {code}
Story points: 8