Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-19999] CoverflowView UI glitch when refreshing images array property

GitHub Issuen/a
TypeBug
Priorityn/a
StatusOpen
ResolutionUnresolved
Affected Version/sn/a
Fix Version/sn/a
Componentsn/a
Labelscoverflowview, engTriage, ios
ReporterHeroaki Anthony N. Lawas
AssigneeUnknown
Created2015-09-18T09:40:40.000+0000
Updated2019-12-09T18:41:31.000+0000

Description

*Issue:* When setting the images array property and then clearing it and setting a new images array property causes a UI glitch in where the old images array is put behind the new images array. *Sample Code*
var arr = [];
for(var i=1;i<8;i++){
	var image = Ti.UI.createImageView({
		image: '/images/image' + i + '.png',
		height: 300,
		width: 220
	});
	arr.push(image.toImage());
}

$.coverFlow.images = arr;
function doClick(){
	arr = [];
	
	for(var i=1;i<6;i++){
		var image = Ti.UI.createImageView({
			image: '/images/image' + i + '.png',
			height: 300,
			width: 220
		});
		arr.push(image.toImage());
	}
	
	$.coverFlow.selected = $.coverFlow.images.length;
	$.coverFlow.images = [];
	$.coverFlow.images = arr;
	$.coverFlow.selected = 0;
}
$.index.open();

Attachments

FileDateSize
thumb_IMG_0042_1024.jpg2015-09-18T09:39:31.000+0000157572

Comments

No comments

JSON Source