{ "id": "77847", "key": "TIMOB-4689", "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": "11363", "description": "Mobile 1.8.0 M10", "name": "Sprint 2011-31", "archived": true, "released": true, "releaseDate": "2011-08-08" } ], "resolution": { "id": "3", "description": "The problem is a duplicate of an existing issue.", "name": "Duplicate" }, "resolutiondate": "2011-08-01T12:33:40.000+0000", "created": "2011-07-14T18:12:20.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [], "versions": [ { "id": "11244", "name": "Release 1.7.0", "archived": true, "released": true, "releaseDate": "2011-06-13" } ], "issuelinks": [], "assignee": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-03T22:30:04.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": "The globalpoint property in a click event on a tableview is undefined. It does not return the screen co-ordinates.\r\n\r\nStep1: Copy the below code in app.js\r\n{code:title='app.js'}\r\nTitanium.UI.setBackgroundColor('white');\r\n\r\nvar win = Titanium.UI.createWindow();\r\nvar data = [{title:\"Row 1\"},{title:\"Row 2\"}];\r\nvar table = Titanium.UI.createTableView({data:data,backgroundColor:'#336699'});\r\n\r\ntable.addEventListener('click',function(e)\r\n\r\n{\r\n\tTi.API.info('globalpoint dictionary is...' +e.globalPoint);\r\n\tTi.API.info('X co-ordinate is'+e.x);\r\n\tTi.API.info('Y co-ordinate is'+e.y);\r\n}\r\n\r\n);\r\nwin.add(table);\r\nwin.open();\r\n{code}\r\nStep2: The globalPoint property is undefined\r\n\r\nWorkaround: to obtain the screen co-ordinates using e.x and e.y\r\n\r\nh3.Associated helpdesk ticket:\r\nhttp://support-admin.appcelerator.com/display/APP-152774", "attachment": [], "flagged": false, "summary": "iOS:globalPoint property is undefined in a tableview click event", "creator": { "name": "anagesh", "key": "anagesh", "displayName": "Anirudh Nagesh", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "anagesh", "key": "anagesh", "displayName": "Anirudh Nagesh", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Ti SDK 1.7.0 and iOS 4.3", "comment": { "comments": [ { "id": "161339", "author": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "body": "TIMOB-4475 already caused globalpoint to be added to tableview. Verified that we're getting x and y locations in the sample code.", "updateAuthor": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-08-01T12:33:40.000+0000", "updated": "2011-08-01T12:33:40.000+0000" }, { "id": "408976", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing as duplicate.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-03T22:30:04.000+0000", "updated": "2017-03-03T22:30:04.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }