{ "id": "161904", "key": "TIMOB-23669", "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": [], "resolution": { "id": "3", "description": "The problem is a duplicate of an existing issue.", "name": "Duplicate" }, "resolutiondate": "2016-10-03T15:50:45.000+0000", "created": "2016-07-21T12:17:37.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "imageview", "listview", "qe-5.4.0", "regression" ], "versions": [ { "id": "17706", "name": "Release 5.4.0", "archived": false, "released": true, "releaseDate": "2016-08-11" } ], "issuelinks": [ { "id": "52859", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "163533", "key": "TIMOB-23973", "fields": { "summary": "iOS: Events on images inside ListViewItem templates not fired (regression)", "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" } }, "priority": { "name": "Critical", "id": "1" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "updated": "2017-03-20T22:26:10.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": "I noticed that when building the Corporate Directory app with 5.4.0.Beta, that the images in the list view change unexpectedly when refreshing the ListView content.\r\n\r\nSteps to reproduce.\r\n- Open Studio\r\n- Import Corporate Directory App\r\n- Open tiapp.xml\r\n- Change the current Ti SDK version to 5.4.0.v20160712013704\r\n- Build the Corporate Directory app for iOS\r\n- Once the app loads and displays the directory, swipe left on any contact and add that contact as a favorite\r\n\r\nNotice that the images for contacts (driven by remote url) change unexpectedly.\r\n\r\nUnder the covers all that is happening, is that the data of the listView is refreshed ", "attachment": [ { "id": "59843", "filename": "listview-issue.mp4", "author": { "name": "bgrantges@appcelerator.com", "key": "bgrantges", "displayName": "Bert Grantges", "active": false, "timeZone": "America/Chicago" }, "created": "2016-07-21T12:24:08.000+0000", "size": 1692875, "mimeType": "video/mp4" } ], "flagged": false, "summary": "ListView Images are displaying incorrectly", "creator": { "name": "bgrantges@appcelerator.com", "key": "bgrantges", "displayName": "Bert Grantges", "active": false, "timeZone": "America/Chicago" }, "subtasks": [], "reporter": { "name": "bgrantges@appcelerator.com", "key": "bgrantges", "displayName": "Bert Grantges", "active": false, "timeZone": "America/Chicago" }, "environment": null, "comment": { "comments": [ { "id": "391197", "author": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "body": "[~bgrantges@appcelerator.com] do you know if this is specific to corporate directory or list view in general? And if it is only on iOS?", "updateAuthor": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2016-07-21T14:54:40.000+0000", "updated": "2016-07-21T14:54:40.000+0000" }, { "id": "391242", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "Not happening in 5.3.1.GA? Only remote images? And is there a repo for the project? Would be good to extract the bug from the example application.\r\n\r\n*EDIT*: Only related change I can think of is [this one|https://github.com/appcelerator/titanium_mobile/commit/a2ce6d1dfac7d75d73ad66656ffbe11200061db3].", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-07-21T20:44:41.000+0000", "updated": "2016-07-21T20:59:54.000+0000" }, { "id": "391719", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "[~htbryant] Can you validate that this is not reproducible with 5_4_X anymore? I'm pretty sure it's fixed along with TIMOB-20204.", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-07-27T19:00:32.000+0000", "updated": "2016-07-27T19:00:32.000+0000" }, { "id": "391731", "author": { "name": "htbryant", "key": "htbryant", "displayName": "Harry Bryant", "active": true, "timeZone": "Europe/London" }, "body": "[~hansknoechel] issues with the images in the ListView are no longer reproducible with the latest 5_4_X build. \r\n\r\nTested On:\r\niPhone 6S (9.3.2) Device & iPhone 6 Plus (8.3) Device\r\nMac OSX El Capitan 10.11.5 \r\nTi SDK: 5.4.0.v20160727094731\r\nAppc Studio: 4.7.0.201607111053\r\nAppc NPM: 4.2.7\t\r\nApp CLI: 5.4.0-34\r\nXcode 7.3\r\nNode v4.4.7\r\n\r\n*Closing ticket.*", "updateAuthor": { "name": "htbryant", "key": "htbryant", "displayName": "Harry Bryant", "active": true, "timeZone": "Europe/London" }, "created": "2016-07-27T21:26:16.000+0000", "updated": "2016-07-27T21:26:16.000+0000" }, { "id": "395082", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "There is a regression for certain template-types that are preventing imageview-subviews from being clicked correctly. Further investigation is coming.\r\n\r\nTest-case (ensure to run on kroll-thread / disable main-thread to reproduce):\r\n{code:javascript}\r\nvar toggle = false;\r\nvar win = Ti.UI.createWindow();\r\n\r\nvar myTemplate = {\r\n childTemplates: [{\r\n type: 'Ti.UI.TextField',\r\n bindId: 'field', \r\n properties: {\r\n width: 200, \r\n height: 30, \r\n left: 20,\r\n backgroundColor: \"#f0f0f0\"\r\n }\r\n },{\r\n type: 'Ti.UI.View',\r\n properties: {\r\n right: 20,\r\n width: 40, \r\n height: 40, \r\n borderRadius: 20,\r\n borderWidth: 1,\r\n borderColor: \"#000\"\r\n },\r\n childTemplates: [{\r\n type: 'Ti.UI.ImageView',\r\n bindId: 'image', \r\n properties: {\r\n width: 25, \r\n height: 25\r\n },\r\n events: {\r\n \"click\": handleImageClick\r\n }\r\n }]\r\n }]\r\n};\r\n\r\nvar list = Ti.UI.createListView({\r\n defaultItemTemplate: \"DefaultCellTemplate\",\r\n templates: { \"DefaultCellTemplate\": myTemplate },\r\n allowsSelection: false,\r\n sections: [Ti.UI.createListSection({\r\n items: [{\r\n properties: {\r\n height: 50\r\n },\r\n field: {\r\n hintText: \"Enter value\"\r\n },\r\n image: {\r\n image: \"images/cloud.png\"\r\n }\r\n },{\r\n properties: {\r\n height: 50\r\n },\r\n field: {\r\n hintText: \"Enter value\"\r\n },\r\n image: {\r\n image: \"images/cloud.png\"\r\n }\r\n }]\r\n })]\r\n});\r\n\r\nfunction handleImageClick(e) {\r\n toggle = !toggle;\r\n var item = e.section.getItemAt(e.itemIndex);\r\n item.image.image = \"images/\" + (toggle ? \"cloud\" : \"chat\") + \".png\"; // Toggles the image on every click\r\n \r\n e.section.updateItemAt(e.itemIndex, item);\r\n};\r\n\r\nwin.add(list);\r\nwin.open();\r\n{code}", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-09-01T11:28:31.000+0000", "updated": "2016-09-01T11:41:35.000+0000" }, { "id": "397893", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "The regression is a duplicate of TIMOB-23973.", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-10-03T15:50:45.000+0000", "updated": "2016-10-03T15:51:05.000+0000" }, { "id": "414111", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as duplicate.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-20T22:26:10.000+0000", "updated": "2017-03-20T22:26:10.000+0000" } ], "maxResults": 9, "total": 9, "startAt": 0 } } }