{ "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,

\n

I 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.

\n

I use the latest 1.3.1 from git.

\n

My code:

\n
\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

{html}", "attachment": [], "flagged": false, "summary": "ImageView in CreateTable", "creator": { "name": "wallneradam", "key": "wallneradam", "displayName": "wallneradam", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "wallneradam", "key": "wallneradam", "displayName": "wallneradam", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "124962", "author": { "name": "wallneradam", "key": "wallneradam", "displayName": "wallneradam", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

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
\n

It works well in 1.3.0, but in 1.3.1 not.

\n

Thanks,
\nAdam Wallner

{html}", "updateAuthor": { "name": "wallneradam", "key": "wallneradam", "displayName": "wallneradam", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:45:23.000+0000", "updated": "2011-04-15T02:45:23.000+0000" }, { "id": "124963", "author": { "name": "jhaynie", "key": "jhaynie", "displayName": "Jeff Haynie", "active": false, "timeZone": "America/Los_Angeles" }, "body": "{html}

this is a blocker for mondays RC.

{html}", "updateAuthor": { "name": "jhaynie", "key": "jhaynie", "displayName": "Jeff Haynie", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:45:23.000+0000", "updated": "2011-04-15T02:45:23.000+0000" }, { "id": "124964", "author": { "name": "jhaynie", "key": "jhaynie", "displayName": "Jeff Haynie", "active": false, "timeZone": "America/Los_Angeles" }, "body": "{html}

(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...

{html}", "updateAuthor": { "name": "jhaynie", "key": "jhaynie", "displayName": "Jeff Haynie", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:45:23.000+0000", "updated": "2011-04-15T02:45:23.000+0000" }, { "id": "124965", "author": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

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.

{html}", "updateAuthor": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:45:23.000+0000", "updated": "2011-04-15T02:45:23.000+0000" }, { "id": "124966", "author": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

valid, has testcase.

\n

see 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.

\n

note to me when closing - there is scaling issue with the\nimages. be sure this was addressed or open a new issue.

{html}", "updateAuthor": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:45:24.000+0000", "updated": "2011-04-15T02:45:24.000+0000" }, { "id": "124967", "author": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Didn't we fix this, again?

{html}", "updateAuthor": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:45:24.000+0000", "updated": "2011-04-15T02:45:24.000+0000" }, { "id": "124968", "author": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "body": "{html}

Built on latest 1.5 and cannot reproduce problem. Also tested\nthe Kitchen Sink sample (Table View Layout 5)
\nIssue resolved

{html}", "updateAuthor": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:45:25.000+0000", "updated": "2011-04-15T02:45:25.000+0000" } ], "maxResults": 7, "total": 7, "startAt": 0 } } }