{ "id": "61788", "key": "TIMOB-1156", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [ { "id": "11225", "name": "Release 1.5.0", "archived": true, "released": true, "releaseDate": "2010-12-14" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-04-17T01:55:22.000+0000", "created": "2011-04-15T02:45:22.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "defect", "imageview", "remote", "tableview", "url" ], "versions": [], "issuelinks": [], "assignee": { "name": "rseagraves", "key": "rseagraves", "displayName": "Reggie Seagraves", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2011-04-17T01:55:22.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "{html}
Hello,
\nI have a table with images and labels in its rows. The images\nare from a remote server. The pictures that are in the viewable\narea, load correctly, but when I scroll down, the other imageviews\nhave the same picture. Some seconds later they load the correct\nimages, but when I scroll up again, I see the lower images in the\ntop as well and they never refresh again.
\nI use the latest 1.3.1 from git.
\nMy code:
\nvar thumbRow = function(data) {
\n
\n\n\n
\n
\n\nvar url = getString('filesURL') + '/' + data.fileId + "_1?sessionId=" + urlencode(getString('sessionId'));\nvar row = Ti.UI.createTableViewRow({\n height: 100,\n _data: data,\n className: 'image',\n hasDetail: data.permission.lc\n});\n\nvar imgView = Ti.UI.createImageView({\n image: url,\n preventDefaultImage: true,\n width: 128,\n height: 85,\n top: 5,\n left: 5,\n borderWidth: 4,\n borderColor: "#000",\n borderRadius: 5,\n backgroundColor: "#000"\n});\n\nvar label = Ti.UI.createLabel({\n top: 0,\n left: 138,\n right: 5,\n text: data.fileName\n});\nrow.add(label);\n\nreturn row;
\n
\n\n\n\n\n
\n};\n
Thanks,
\nAdam Wallner
It is a separate, cleaner example:
\n\nvar w = Ti.UI.createWindow({});\n\nimages = [\n 'http://t2.gstatic.com/images?q=tbn:BjUSCfLZ6aMORM:http://mariusbardan.files.wordpress.com/2009/10/carbonapple_mono1024.jpg',\n 'http://t0.gstatic.com/images?q=tbn:HhYIr-Oz_5sLkM:http://blog.volgyiattila.hu/wp-content/uploads/2009/01/apple-logo1.jpg',\n 'http://t3.gstatic.com/images?q=tbn:u18bgKxb_hjznM:http://www.applephone.hu/wp-content/gallery/miki315/apple-marbles.jpg',\n 'http://t1.gstatic.com/images?q=tbn:GzVd4vgzFJCrdM:http://muzzak.freeblog.hu/files/apple.jpg',\n 'http://t2.gstatic.com/images?q=tbn:-iOGlc8ww3Zx8M:http://www.arukereso.hu/akciostippek/wp-content/uploads/2009/06/apple-iphone.jpg',\n 'http://t3.gstatic.com/images?q=tbn:T2pHhXb3a80U1M:http://hirkep.wapzona.hu/2008/07/28/apple_touch.jpg',\n 'http://t3.gstatic.com/images?q=tbn:2IfDq8oqmRRJEM:http://mobilisztan.blog.hu/media/image/apple-iphone.jpg',\n 'http://t0.gstatic.com/images?q=tbn:CN-Abkg3DWfM4M:http://kepzavar.info/wp-content/uploads/2009/12/apple-iphone.jpg',\n 'http://t3.gstatic.com/images?q=tbn:NRHT1TtifhKitM:http://fenyoter.sopron.hu/html/pic/fresh-apple.jpg'\n];\n\nvar table = Ti.UI.createTableView({});\nw.add(table);\n\nfor (var i in images) {\n var row = Ti.UI.createTableViewRow({\n height: 150,\n className: 'image'\n });\n\n var imgView = Ti.UI.createImageView({\n url: images[i],\n width: 128,\n height: 100,\n });\n row.add(imgView);\n \n table.appendRow(row);\n}\nw.open();
\n
\nIt works well in 1.3.0, but in 1.3.1 not.
\nThanks,
\nAdam Wallner
this is a blocker for mondays RC.
(from [7df9cc8f63d66cbb90c374ac443f5dd6d80727f3])\n[#1161 state:resolved] need to fire image load\nevent each time the image loads [#1156\nstate:resolved] fixed problems reparenting images in tableview\n\nhttp://github.com/appcelerator/titanium_mobile/commit/7df9cc8f63d66...
It was reported that this problem persists. Results of the\nUI->Views->Table View->Layout 5 test confirm this, but I\nknow for a fact that it was fixed at one point.
valid, has testcase.
\nsee it in KS by:
\n1.buseUI>views>Table View (layout 5)
\n2.note the images loaded, scroll down then up again and note the\nimages are different.
note to me when closing - there is scaling issue with the\nimages. 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\nthe Kitchen Sink sample (Table View Layout 5)
\nIssue resolved