[TIMOB-1156] ImageView in CreateTable
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Low |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2011-04-17T01:55:22.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 1.5.0 |
Components | iOS |
Labels | defect, imageview, remote, tableview, url |
Reporter | wallneradam |
Assignee | Reggie Seagraves |
Created | 2011-04-15T02:45:22.000+0000 |
Updated | 2011-04-17T01:55:22.000+0000 |
Description
Hello,
I have a table with images and labels in its rows. The images are from a remote server. The pictures that are in the viewable area, load correctly, but when I scroll down, the other imageviews have the same picture. Some seconds later they load the correct images, but when I scroll up again, I see the lower images in the top as well and they never refresh again.
I use the latest 1.3.1 from git.
My code:
var thumbRow = function(data) {
var url = getString('filesURL') + '/' + data.fileId + "_1?sessionId=" + urlencode(getString('sessionId'));
var row = Ti.UI.createTableViewRow({
height: 100,
_data: data,
className: 'image',
hasDetail: data.permission.lc
});
var imgView = Ti.UI.createImageView({
image: url,
preventDefaultImage: true,
width: 128,
height: 85,
top: 5,
left: 5,
borderWidth: 4,
borderColor: "#000",
borderRadius: 5,
backgroundColor: "#000"
});
var label = Ti.UI.createLabel({
top: 0,
left: 138,
right: 5,
text: data.fileName
});
row.add(label);
return row;
};
Thanks,
Adam Wallner
It is a separate, cleaner example:
It works well in 1.3.0, but in 1.3.1 not.
Thanks,
Adam Wallner
this is a blocker for mondays RC.
(from [7df9cc8f63d66cbb90c374ac443f5dd6d80727f3]) [#1161 state:resolved] need to fire image load event each time the image loads [#1156 state:resolved] fixed problems reparenting images in tableview http://github.com/appcelerator/titanium_mobile/commit/7df9cc8f63d66cbb90c374ac443f5dd6d80727f3"> http://github.com/appcelerator/titanium_mobile/commit/7df9cc8f63d66...
It was reported that this problem persists. Results of the UI->Views->Table View->Layout 5 test confirm this, but I know for a fact that it was fixed at one point.
valid, has testcase.
see it in KS by:
1.buseUI>views>Table View (layout 5)
2.note the images loaded, scroll down then up again and note the images are different.
note to me when closing - there is scaling issue with the images. be sure this was addressed or open a new issue.
Didn't we fix this, again?
Built on latest 1.5 and cannot reproduce problem. Also tested the Kitchen Sink sample (Table View Layout 5)
Issue resolved