[TIMOB-19999] CoverflowView UI glitch when refreshing images array property
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Open |
Resolution | Unresolved |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | n/a |
Labels | coverflowview, engTriage, ios |
Reporter | Heroaki Anthony N. Lawas |
Assignee | Unknown |
Created | 2015-09-18T09:40:40.000+0000 |
Updated | 2019-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
File | Date | Size |
---|---|---|
thumb_IMG_0042_1024.jpg | 2015-09-18T09:39:31.000+0000 | 157572 |
No comments