{ "id": "62857", "key": "TIMOB-2225", "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:58:28.000+0000", "created": "2011-04-15T03:14:05.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "apidoc", "clickevent", "defect", "ios", "ipad", "iphone", "tableview" ], "versions": [], "issuelinks": [], "assignee": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2011-04-17T01:58:28.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}

Tested with 4.1 and 1.5 the click events event.x & .y are\nnull.

\n

Code attached.

\n

HD ticket:
\nhttp://developer.appcelerator.com/helpdesk/view/51581

{html}", "attachment": [ { "id": "18125", "filename": "table_basic.js", "author": { "name": "ctredway1", "key": "ctredway1", "displayName": "ctredway", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:14:05.000+0000", "size": 889, "mimeType": "application/x-javascript" } ], "flagged": false, "summary": "Tableview click events do not have x & y data", "creator": { "name": "ctredway1", "key": "ctredway1", "displayName": "ctredway", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "ctredway1", "key": "ctredway1", "displayName": "ctredway", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "127874", "author": { "name": "rpfeiffer", "key": "rpfeiffer", "displayName": "Ralf Pfeiffer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Assigning to Jay... This is an opportunistic fix for R1.5

{html}", "updateAuthor": { "name": "rpfeiffer", "key": "rpfeiffer", "displayName": "Ralf Pfeiffer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:14:05.000+0000", "updated": "2011-04-15T03:14:05.000+0000" }, { "id": "127875", "author": { "name": "jtobias", "key": "jtobias", "displayName": "jtobias", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Tested with iOS 4.2 (Beta GM Seed) and 1.5.0 (latest as of\n11/17/2010), and event.x and event.y are null.
\nThe Customer facing documentation for TableView and TableViewRow\nlist as their events the 'x' and 'y' values for \"click\", so after\nspeaking with Clint and Ralf, and input from QA and a few others,\nthis should be treated as a Documentation bug for 1.5.0 and a\nFeature Request for 1.6.0. Adding \"apidoc\" tag for this reason.

\n

COURSE OF ACTION:
\nThere are several potential paths through this fix, and getting the\ncustomer a reality update feels most important. Ralf to decide\nbefore release.

\n

RELATED BUG(S):
\nSee LH#1253 where again, 'x' and 'y' do not get reported. I am\ncurrently looking the code for TiUITableView.m and Proxy,\nespecially where @\"click\" appears, to see just what happens. Tramer\nthinks that although this ticket and LH#1253 may have similar\nsolutions, it's not subsequently obvious that the root cause would\nbe the same (his words in our IRC today).

{html}", "updateAuthor": { "name": "jtobias", "key": "jtobias", "displayName": "jtobias", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:14:06.000+0000", "updated": "2011-04-15T03:14:06.000+0000" }, { "id": "127876", "author": { "name": "jhaynie", "key": "jhaynie", "displayName": "Jeff Haynie", "active": false, "timeZone": "America/Los_Angeles" }, "body": "{html}

(from [b934d112ba4be5c30fbaa77a96b8cc74f22bdaa0])\n[#2225 state:fixed-in-qa] Tableview (and\nbuttonsnow support x&y. Local only, no global (yet!) \nhttps://github.com/appcelerator/titanium_mobile/commit/b934d112ba4b...

{html}", "updateAuthor": { "name": "jhaynie", "key": "jhaynie", "displayName": "Jeff Haynie", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:14:06.000+0000", "updated": "2011-04-15T03:14:06.000+0000" }, { "id": "127877", "author": { "name": "jhaynie", "key": "jhaynie", "displayName": "Jeff Haynie", "active": false, "timeZone": "America/Los_Angeles" }, "body": "{html}

(from [0bb87b64f2cb7fee663be1070fa5671c5a60f7a0])\n[#2225] Table cells now report hit points as\nwell, if they recieve the hit event. \nhttps://github.com/appcelerator/titanium_mobile/commit/0bb87b64f2cb...

{html}", "updateAuthor": { "name": "jhaynie", "key": "jhaynie", "displayName": "Jeff Haynie", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:14:07.000+0000", "updated": "2011-04-15T03:14:07.000+0000" }, { "id": "127878", "author": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "body": "{html}

Resolved.
\nTested on iPhone 4 running 4.2 and on iPhone Simulator as well as\niPad simulator running 4.0, 4.1, and 4.2
\nSDK 1.5 from 12/9 (r43358e5f)
\nTested with code provided as well as this:

\n
\nvar data = [{title:'one'},{title:'two'}];\nvar table = Ti.UI.createTableView({data:data});\nwin.add(table);\ntable.addEventListener('click',function(e){\n    alert('row x: '+e.x+', row y: '+e.y);\n});\n
{html}", "updateAuthor": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:14:07.000+0000", "updated": "2011-04-15T03:14:07.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }