{ "id": "76632", "key": "TIMOB-4475", "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": "11360", "description": "Mobile 1.8.0 M07", "name": "Sprint 2011-28", "archived": true, "released": true, "releaseDate": "2011-07-18" }, { "id": "11331", "description": "", "name": "Release 1.8.0", "archived": true, "released": true, "releaseDate": "2011-10-31" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-10-27T15:54:20.000+0000", "created": "2011-06-21T16:23:31.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [], "versions": [ { "id": "11244", "name": "Release 1.7.0", "archived": true, "released": true, "releaseDate": "2011-06-13" } ], "issuelinks": [ { "id": "12562", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "79679", "key": "TIMOB-5118", "fields": { "summary": "iOS: Deprecate globalpoint member", "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": "High", "id": "2" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2011-10-27T15:54:20.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": "e.globalPoint is undefined for a click event if a tableView has been added to a window.\r\nThis is true if you add the event listener to the window or the tableView.\r\n\r\nStep 1: run the code below\r\nStep 2: tap on the tableView\r\nStep 3: in the log you will see that globalPoint is undefined\r\nStep 4: comment out win1.add(tableView);\r\nStep 5: run code\r\nStep 6: tap window\r\nStep 7: in the log globalPoint will be an [Object]\r\n\r\n{code:title=\"app.js\"}\r\nvar tabGroup = Titanium.UI.createTabGroup();\r\n\r\nvar win1 = Ti.UI.createWindow({\r\n backgroundColor:'#f00',\r\n title:'Red'\r\n});\r\nwin1.addEventListener('click', function(e) {\r\n // alert(e.globalPoint.x + '\\n' + e.globalPoint.y);\r\n Ti.API.info('e.x: '+e.x+' e.y: '+e.y);\r\n Ti.API.info('e.globalPoint: '+e.globalPoint);\r\n});\r\n\r\nvar tab1 = Titanium.UI.createTab({\r\n title:'Red',\r\n window:win1\r\n});\r\n\r\nvar win2 = Ti.UI.createWindow({\r\n backgroundColor:'#0f0',\r\n title:'Green'\r\n});\r\nwin2.addEventListener('click', function(e) {\r\n // alert(e.globalPoint.x + '\\n' + e.globalPoint.y);\r\n Ti.API.info('e.x: '+e.x+' e.y: '+e.y);\r\n Ti.API.info('e.globalPoint: '+e.globalPoint);\r\n});\r\n\r\nvar tab2 = Titanium.UI.createTab({\r\n title:'Green',\r\n window:win2\r\n});\r\n\r\ntabGroup.addTab(tab1);\r\ntabGroup.addTab(tab2);\r\n\r\n//TABLE VIEW\r\n\r\nvar data = [];\r\nfor (var i = 0; i < 10; i++) {\r\n data.push({title: 'Row '+i});\r\n}\r\n\r\nvar tableView = Ti.UI.createTableView({\r\n data:data\r\n});\r\n\r\nwin1.add(tableView);\r\n\r\ntabGroup.open();\r\n{code}\r\n\r\nh3. Associated Helpdesk Ticket\r\nhttp://appc.me/c/APP-454718", "attachment": [], "flagged": false, "summary": "iOS: globalPoint is undefined for a click event if you add a tableView to a window", "creator": { "name": "jalter", "key": "jalter", "displayName": "Jon Alter", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "jalter", "key": "jalter", "displayName": "Jon Alter", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "TiSDK 1.7.0\r\niOS SDK 4.3", "comment": { "comments": [ { "id": "158344", "author": { "name": "rseagraves", "key": "rseagraves", "displayName": "Reggie Seagraves", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Coordinate Android team implementation.", "updateAuthor": { "name": "rseagraves", "key": "rseagraves", "displayName": "Reggie Seagraves", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-06-30T13:10:17.000+0000", "updated": "2011-06-30T13:10:17.000+0000" }, { "id": "164029", "author": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested with 1.8.0.v20110819142548\niPhone 4.3.4\niPad2 4.3.2", "updateAuthor": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-08-25T11:26:28.000+0000", "updated": "2011-08-25T11:26:28.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }