{ "id": "128055", "key": "TIMOB-16680", "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": "16723", "description": "Windows Platform Support, ListView updates, Vector overlays in maps", "name": "Release 4.1.0", "archived": false, "released": true, "releaseDate": "2015-07-08" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2015-06-17T05:51:19.000+0000", "created": "2014-03-24T15:46:08.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "supportTeam" ], "versions": [ { "id": "14982", "description": "Release 3.2.0", "name": "Release 3.2.0", "archived": false, "released": true, "releaseDate": "2013-12-19" }, { "id": "15856", "description": "Release 3.2.1", "name": "Release 3.2.1", "archived": false, "released": true, "releaseDate": "2014-02-10" }, { "id": "15857", "description": "Release 3.2.2", "name": "Release 3.2.2", "archived": false, "released": true, "releaseDate": "2014-03-09" } ], "issuelinks": [], "assignee": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-24T19:11:26.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": "h3. Issue\r\n\r\nWhen creating a listView template that overlaps UI elements and we use the 'itemClick' to get the bindId we always receive the id from the element on the back instead of the clicked item.\r\n\r\nh3. Testing\r\n\r\nAfter adding zIndex and setting bubble parent to false makes no difference and keeps throwing the wrong bindId.\r\n\r\nh3. Steps to repro\r\n\r\n1. Run the sample code\r\n2. Click on the label \r\n\r\nExpected Result:\r\nThe alert will show the bindId 'innerLabel'\r\n\r\nActual Result:\r\nThe alert show the bindId 'innerThumbnailImageView'\r\n\r\nh3. Sample code\r\n\r\nindex.xml\r\n{code}\r\n\r\n\r\n\t\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n\r\n{code}\r\n\r\nindex.js\r\n{code}\r\n(function() {\r\n var items = [];\r\n \r\n for(var i=0;i<10;++i){\r\n \tvar item = {};\r\n \titem.innerThumbnailImageView = {\r\n\t image: '/images/pic.png'\r\n\t };\r\n\t item.innerLabel = {\r\n\t text: 'Inner Label Tester'\r\n\t };\r\n\t items.push(item);\r\n }\r\n \r\n $.listingSection.items = items;\r\n}());\r\n\r\n$.index.open();\r\n\r\nfunction listItemClick(e) {\r\n alert(e.bindId);\r\n}\r\n{code}\r\n\r\nh3. Workaround\r\n\r\nIf we add the event directly to the element of the template we receive the correct id.\r\n\r\n{code}\r\n\r\n\r\n\t\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n\r\n{code}", "attachment": [], "flagged": false, "summary": "iOS: listView when views overlap itemclick event return wrong bindId", "creator": { "name": "mcota", "key": "mcota", "displayName": "Marco Cota", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "mcota", "key": "mcota", "displayName": "Marco Cota", "active": false, "timeZone": "America/Los_Angeles" }, "environment": "Titanium SDK: Mobile 3.2GA\r\nPlatform OS: iOS\r\nPlatform OS Version: 7", "closedSprints": [ { "id": 272, "state": "closed", "name": "2014 Sprint 25 SDK", "startDate": "2014-12-08T22:49:31.264Z", "endDate": "2014-12-22T01:00:00.000Z", "completeDate": "2015-01-05T18:18:28.523Z", "originBoardId": 114 }, { "id": 416, "state": "closed", "name": "2015 Sprint 12 SDK", "startDate": "2015-06-06T00:00:43.862Z", "endDate": "2015-06-20T00:00:00.000Z", "completeDate": "2015-06-23T05:41:35.834Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "327570", "author": { "name": "yomybaby", "key": "yomybaby", "displayName": "Jong Eun Lee", "active": true, "timeZone": "Asia/Tokyo" }, "body": "I made a Pull Request : https://github.com/appcelerator/titanium_mobile/pull/6211\r\n\r\nFindViewProxyWithBindIdContainingPoint function have to find bindId from front to back(reverse index).", "updateAuthor": { "name": "yomybaby", "key": "yomybaby", "displayName": "Jong Eun Lee", "active": true, "timeZone": "Asia/Tokyo" }, "created": "2014-10-10T06:23:58.000+0000", "updated": "2014-10-10T06:23:58.000+0000" }, { "id": "329518", "author": { "name": "PierreVDEV", "key": "pierrevdev", "displayName": "Pierre VAN DE VELDE", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~yomybaby]: you made my day! I've tried your PR and it's working really nice :)", "updateAuthor": { "name": "PierreVDEV", "key": "pierrevdev", "displayName": "Pierre VAN DE VELDE", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-10-27T14:44:37.000+0000", "updated": "2014-10-27T14:44:37.000+0000" }, { "id": "334338", "author": { "name": "pic", "key": "pic", "displayName": "Mauro Piccotti", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I have the same problem, when the patch will be applied to the sdk?", "updateAuthor": { "name": "pic", "key": "pic", "displayName": "Mauro Piccotti", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-12-02T15:44:45.000+0000", "updated": "2014-12-02T15:44:45.000+0000" }, { "id": "355313", "author": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "body": "PR here. https://github.com/appcelerator/titanium_mobile/pull/6918 and merged.", "updateAuthor": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-06-17T05:50:31.000+0000", "updated": "2015-06-17T05:50:31.000+0000" }, { "id": "415738", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as fixed.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-24T19:11:26.000+0000", "updated": "2017-03-24T19:11:26.000+0000" } ], "maxResults": 6, "total": 6, "startAt": 0 } } }