{ "id": "104873", "key": "TIMOB-11750", "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": "14162", "description": "Release 3.1.0", "name": "Release 3.1.0", "archived": true, "released": true, "releaseDate": "2013-04-16" }, { "id": "14624", "description": "2012 Sprint 24 JS", "name": "2012 Sprint 24", "archived": true, "released": true, "releaseDate": "2012-12-03" }, { "id": "14625", "description": "2012 Sprint 24 API", "name": "2012 Sprint 24 API", "archived": true, "released": true, "releaseDate": "2012-12-03" } ], "resolution": { "id": "3", "description": "The problem is a duplicate of an existing issue.", "name": "Duplicate" }, "resolutiondate": "2012-11-17T00:19:25.000+0000", "created": "2012-11-13T14:42:40.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "SupportTeam", "module_tableviewrow", "qe-testadded", "regression", "triage" ], "versions": [], "issuelinks": [ { "id": "22871", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "outwardIssue": { "id": "103615", "key": "TIMOB-11530", "fields": { "summary": "Android: Tableview with rows containing Brightcove video objects returns zero rows in table click event", "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 } } } }, { "id": "22869", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "outwardIssue": { "id": "104724", "key": "TIMOB-11713", "fields": { "summary": "event object has differerent properties in 3.0 vs 2.1.3.", "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 } } } }, { "id": "22758", "type": { "id": "10011", "name": "Includes", "inward": "is included by", "outward": "includes" }, "outwardIssue": { "id": "104825", "key": "AC-1909", "fields": { "summary": "Click handling in tableview is different from 2.1.3GA to 3.0.0 Beta", "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" } }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2013-09-20T08:58:31.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": "10202", "name": "Android", "description": "Android Platform" } ], "description": "h1. Problem Description\r\nWith SDK 3.0.0, when a TableViewRow has a view inside, and this view is clicked, the listener does not return back the information about the row. In particular, these properties are missing: \"detail\", \"index\", \"row\", \"rowData\", \"searchMode\", \"section\". Clicking in the row itself works fine.\r\n\r\nThis was working on 2.1.x\r\n\r\nh1. Steps to reproduce\r\n\r\nUse this code to reproduce the problem:\r\n\r\n{code}\r\nvar win = Ti.UI.createWindow({\r\n\tbackgroundColor : 'white'\r\n});\r\n\r\nvar table = Ti.UI.createTableView();\r\n\r\nvar row = Ti.UI.createTableViewRow({\r\n width: \"100%\",\r\n height: 100\r\n});\r\n\r\nvar v = Ti.UI.createView({\r\n left: 0, top: 0,\r\n width: '50%', height: 100,\r\n backgroundColor : 'red'\r\n});\r\n \r\nrow.add(v);\r\ntable.setData([row]);\r\n \r\ntable.addEventListener('click', function(e) {\r\n alert(e);\r\n});\r\n\r\nwin.add(table);\r\nwin.open();\r\n{code}\r\n\r\nClicking on the RED window does not show e.index, e.row etc., while clicking on the right part (white), you can see them.\r\n\r\nThese are the results of the click on the red view:\r\n\r\n{code}\r\n{\r\n \"type\":\"click\",\r\n \"source\": {\r\n \"backgroundColor\":\"red\",\r\n \"backgroundRepeat\":false,\r\n \"height\":100,\"left\":0,\"top\":0,\r\n \"rect\":{\"height\":100,\"y\":0,\"x\":0,\"width\":360},\r\n \"width\":\"50%\",\r\n \"size\":{\"height\":100,\"y\":0,\"width\":360,\"x\":0},\r\n \"keepScreenOn\":false,\r\n \"children\":[],\r\n \"bubbleParent\":true\r\n },\r\n \"bubbles\":true,\r\n \"y\":60,\r\n \"cancelBubble\":false,\r\n \"x\":190\r\n}\r\n{code}\r\n\r\n...and clicking on the row (white):\r\n\r\n{code}\r\n{\r\n \"type\":\"click\",\r\n \"source\":{\r\n \"backgroundRepeat\":false,\r\n \"height\":100,\r\n \"children\":[{\r\n \"backgroundColor\":\"red\",\r\n \"backgroundRepeat\":false,\r\n \"height\":100,\"left\":0,\"top\":0,\r\n \"rect\":{\"height\":100,\"y\":0,\"x\":0,\"width\":360},\r\n \"width\":\"50%\",\r\n \"size\":{\"height\":100,\"y\":0,\"width\":360,\"x\":0},\r\n \"keepScreenOn\":false,\r\n \"children\":[],\r\n \"bubbleParent\":true\r\n }],\r\n \"rect\":{\"height\":0,\"y\":0,\"x\":0,\"width\":0},\r\n \"width\":\"100%\",\r\n \"size\":{\"height\":0,\"y\":0,\"width\":0,\"x\":0},\r\n \"keepScreenOn\":false,\r\n \"bubbleParent\":true\r\n },\r\n \"detail\":false,\r\n \"index\":0,\r\n \"bubbles\":true,\r\n \"rowData\":{\r\n \"backgroundRepeat\":false,\r\n \"width\":\"100%\",\"height\":100\r\n },\r\n \"searchMode\":false,\r\n \"row\":{\r\n \"backgroundRepeat\":false,\r\n \"height\":100,\r\n \"children\":[{\r\n \"backgroundColor\":\"red\",\r\n \"backgroundRepeat\":false,\r\n \"height\":100,\"left\":0,\"top\":0,\r\n \"rect\":{\"height\":100,\"y\":0,\"x\":0,\"width\":360},\r\n \"width\":\"50%\",\r\n \"size\":{\"height\":100,\"y\":0,\"width\":360,\"x\":0},\r\n \"keepScreenOn\":false,\r\n \"children\":[],\r\n \"bubbleParent\":true\r\n }],\r\n \"rect\":{\"height\":0,\"y\":0,\"x\":0,\"width\":0},\r\n \"width\":\"100%\",\r\n \"size\":{\"height\":0,\"y\":0,\"width\":0,\"x\":0},\r\n \"keepScreenOn\":false,\r\n \"bubbleParent\":true\r\n },\r\n \"section\":{\r\n \"children\":[],\r\n \"rect\":{\"height\":0,\"y\":0,\"x\":0,\"width\":0},\r\n \"size\":{\"height\":0,\"y\":0,\"width\":0,\"x\":0},\r\n \"keepScreenOn\":false,\r\n \"rows\":[{\r\n \"backgroundRepeat\":false,\r\n \"height\":100,\r\n \"children\":[{\r\n \"backgroundColor\":\"red\",\r\n \"backgroundRepeat\":false,\r\n \"height\":100,\"left\":0,\"top\":0,\r\n \"rect\":{\"height\":100,\"y\":0,\"x\":0,\"width\":360},\r\n \"width\":\"50%\",\r\n \"size\":{\"height\":100,\"y\":0,\"width\":360,\"x\":0},\r\n \"keepScreenOn\":false,\r\n \"children\":[],\r\n \"bubbleParent\":true\r\n }],\r\n \"rect\":{\"height\":0,\"y\":0,\"x\":0,\"width\":0},\r\n \"width\":\"100%\",\r\n \"size\":{\"height\":0,\"y\":0,\"width\":0,\"x\":0},\r\n \"keepScreenOn\":false,\r\n \"bubbleParent\":true\r\n }],\r\n \"rowCount\":1,\r\n \"bubbleParent\":true\r\n },\r\n \"cancelBubble\":false\r\n}\r\n{code}", "attachment": [], "flagged": false, "summary": "Android: missing row information when clicking on a View inside a TableViewRow", "creator": { "name": "dcassenti", "key": "dcassenti", "displayName": "Davide Cassenti", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "dcassenti", "key": "dcassenti", "displayName": "Davide Cassenti", "active": true, "timeZone": "Europe/Berlin" }, "environment": null, "comment": { "comments": [ { "id": "227557", "author": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Seems like the same issue as TIMOB-11530 which has been already resolved against the master (3.1.0).", "updateAuthor": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-11-15T20:03:15.000+0000", "updated": "2012-11-15T20:03:15.000+0000" }, { "id": "246843", "author": { "name": "pmishra", "key": "pmishra", "displayName": "Paras Mishra", "active": true, "timeZone": "Asia/Kolkata" }, "body": "Closing as its the duplicate issue which has been fixed and closed.", "updateAuthor": { "name": "pmishra", "key": "pmishra", "displayName": "Paras Mishra", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2013-04-10T09:46:27.000+0000", "updated": "2013-04-10T09:46:27.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }