{ "id": "81697", "key": "AC-2792", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-12-23T03:46:12.000+0000", "created": "2011-10-18T08:20:03.000+0000", "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "updated": "2016-03-08T07:47:42.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": [], "description": "Here is an example that demonstrates the issue:\r\n\r\n{code}\r\nvar win = Ti.UI.createWindow({\r\n\tmodal: true,\r\n\tbackgroundColor: '#000',\r\n\tlayout: 'vertical'\r\n});\r\n\r\n\r\nvar tableView = Ti.UI.createTableView({\r\n\tdata: [ { title: 'Toogle row 1' }, { title: 'Toogle row 2' } ]\r\n})\r\n\r\n\r\ntableView.addEventListener('click', function(e) {\r\n Ti.API.debug(e.row);\r\n\te.row.hasCheck = !e.row.hasCheck;\r\n\tif (e.row.hasCheck) {\r\n\t\te.row.backgroundColor = '#999';\r\n\t}\r\n\telse {\r\n\t\te.row.backgroundColor = '#000';\r\n\t}\r\n\t\r\n\tTi.API.debug(e.row.hasCheck);\r\n\tTi.API.debug(e.row.backgroundColor);\r\n});\r\n\r\nwin.add(tableView);\r\n\r\nwin.open();\r\n\r\n{code}\r\n\r\nComment out window's layout property and see the difference. The difference should be that example works fine without layout property set to \"vertical\", \"horizontal\" seems to work fine.\r\n\r\n\r\nOutput seems ok, \"e.row\" produces same string every time, \"hasCheck\" and \"backgroundColor\" property is changed, but it isn't reflected on actual table view row (except for the first click).", "attachment": [], "flagged": false, "summary": "\"TableView\" issue - row reference in \"click\" event listener is broken when \"TableView\" is added to the window with layout property set to \"vertical\"", "creator": { "name": "ivan.skugor", "key": "ivan.skugor", "displayName": "Ivan Skugor", "active": true, "timeZone": "Europe/Amsterdam" }, "subtasks": [], "reporter": { "name": "ivan.skugor", "key": "ivan.skugor", "displayName": "Ivan Skugor", "active": true, "timeZone": "Europe/Amsterdam" }, "environment": "Titanium SDK version: 1.7.3 (10/17/11 11:46 05ee9f4...), Samsung Galaxy Tab v7, Windows XP", "comment": { "comments": [ { "id": "170301", "author": { "name": "ivan.skugor", "key": "ivan.skugor", "displayName": "Ivan Skugor", "active": true, "timeZone": "Europe/Amsterdam" }, "body": "Why is this issue not being accepted? Did I miss something to mention, description is not good, etc.? :)", "updateAuthor": { "name": "ivan.skugor", "key": "ivan.skugor", "displayName": "Ivan Skugor", "active": true, "timeZone": "Europe/Amsterdam" }, "created": "2011-10-25T05:01:54.000+0000", "updated": "2011-10-25T05:01:54.000+0000" }, { "id": "176992", "author": { "name": "ivan.skugor", "key": "ivan.skugor", "displayName": "Ivan Skugor", "active": true, "timeZone": "Europe/Amsterdam" }, "body": "I tested this with latest 1.9 SDK and issue does not exists!\r\n\r\n\r\nCase closed. :)", "updateAuthor": { "name": "ivan.skugor", "key": "ivan.skugor", "displayName": "Ivan Skugor", "active": true, "timeZone": "Europe/Amsterdam" }, "created": "2011-12-22T01:08:47.000+0000", "updated": "2011-12-22T01:08:47.000+0000" }, { "id": "177104", "author": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "body": "Thank you for reporting back, Ivan. Much appreciated! :)", "updateAuthor": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "created": "2011-12-23T03:46:12.000+0000", "updated": "2011-12-23T03:46:12.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }