{ "id": "124467", "key": "TIMOB-16137", "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": "15972", "description": "Release 3.4.0", "name": "Release 3.4.0", "archived": false, "released": true, "releaseDate": "2014-09-28" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2014-08-20T04:34:28.000+0000", "created": "2014-01-07T18:22:14.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "module_tableviewrow", "qe-manualtest" ], "versions": [ { "id": "14982", "description": "Release 3.2.0", "name": "Release 3.2.0", "archived": false, "released": true, "releaseDate": "2013-12-19" } ], "issuelinks": [ { "id": "39603", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "outwardIssue": { "id": "133801", "key": "AC-1513", "fields": { "summary": "getApiName() return \"Ti.View\"", "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": "2014-08-20T22:47:44.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": "Test code.\r\n\r\n{code}\r\nTi.UI.setBackgroundColor('#000');\r\n \r\nvar win = Ti.UI.createWindow({\r\n title : 'TableView Bug',\r\n});\r\n \r\nfunction makeRow () {\r\n \r\n var row = Ti.UI.createTableViewRow({ \r\n //objName: 'row',\r\n height:45\r\n });\r\n \r\n var primaryLabelwidth = 160;\r\n var primaryLabel = Ti.UI.createLabel({\r\n text:\"label1\",\r\n top:0,\r\n left:15,\r\n height:30\r\n });\r\n \r\n row.add(primaryLabel);\r\n \r\n var unitsLabel = Ti.UI.createLabel({\r\n text:\"YY\",\r\n top:0,\r\n right:49,\r\n height:40,\r\n width:42\r\n });\r\n row.add(unitsLabel);\r\n return row; \r\n}\r\n \r\nvar table1 = Ti.UI.createTableView({\r\n top:60,\r\n left:0,\r\n right:20,\r\n bottom:40,\r\n editable:true, // 'swipe to delete' on iPhone is the default if you set editable:true in the createTableview command.\r\n moveable:true,\r\n longpressIsActive: false,\r\n objectName: 'table',\r\n visible: true\r\n});\r\n \r\nvar refreshTableItems = function(){\r\n var test_index = 0;\r\n \r\n Ti.API.info('Reached: ');\r\n while (test_index < 5) { \r\n \r\n row = makeRow ();\r\n //Shopping list name added to the master table of shopping lists as a specific row\r\n table1.appendRow (row);\r\n test_index = test_index + 1;\r\n } \r\n Ti.API.info('while loop ended: ');\r\n };\r\n refreshTableItems();\r\n \r\ntable1.addEventListener('click', function(e) {\r\n Ti.API.info(\"e.row =\" + e.row + \", e.source = \" + e.source);\r\n});\r\nwin.add(table1);\r\nwin.open();\r\n\r\n{code}\r\n\r\nh4.Steps to reproduce this issue: \r\n1. Create a new mobile project for iOS7, with 3.2.0.GA\r\n2. Paste the testcase into app.js\r\n3. Run in the simulator\r\n4. Click on the first row.\r\n5. Click on the second row. \r\n6. Check console, you will see the difference, even if you created the two rows in the same way.\r\n\r\nh4.Log file when YY label is clicked in TableView:\r\nh4.First row output:\r\n{code}\r\n[INFO] e.row =[object TiUITableViewRow], e.source = [object TiUITableViewRow]\r\n{code}\r\nh4.Second or any other row is clicked: \r\n{code}\r\n[INFO] e.row =[object TiUITableViewRow], e.source = [object TiUILabel]\r\n{code}", "attachment": [], "flagged": false, "summary": "iOS: TableView click event reporting different source's on different rows. ", "creator": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "iOS 7 ", "comment": { "comments": [ { "id": "287630", "author": { "name": "muralinr", "key": "muralinr", "displayName": "Murali Rama", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Hello, Is there any update on this issue? Thanks.", "updateAuthor": { "name": "muralinr", "key": "muralinr", "displayName": "Murali Rama", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-01-10T14:38:16.000+0000", "updated": "2014-01-10T14:38:16.000+0000" }, { "id": "289176", "author": { "name": "muralinr", "key": "muralinr", "displayName": "Murali Rama", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Hello, Is there any update on this issue? Thanks.", "updateAuthor": { "name": "muralinr", "key": "muralinr", "displayName": "Murali Rama", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-01-22T03:42:24.000+0000", "updated": "2014-01-22T03:42:24.000+0000" }, { "id": "317215", "author": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "updateAuthor": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "created": "2014-08-06T03:29:08.000+0000", "updated": "2014-08-06T03:29:08.000+0000" }, { "id": "318603", "author": { "name": "shameerj", "key": "shameerj", "displayName": "Shameer Jan", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Issue cannot reproduces \r\nTitanium Command-Line Interface, \r\nCLI version 3.3.0, \r\nTitanium SDK version 3.4.0.GA \r\niOS SDK: 7.1 \r\niOS iPhone Simulator: 7.1", "updateAuthor": { "name": "shameerj", "key": "shameerj", "displayName": "Shameer Jan", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-08-14T04:57:28.000+0000", "updated": "2014-08-14T12:27:07.000+0000" }, { "id": "318661", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~shameerj] and [~sunila]. We should test this in 3.2.0 and 3.4.0 (latest master).\r\n\r\n* If it cannot be reproduced in 3.2.0, then mark as Can't Reproduce, with no fix version\r\n* If it can be reproduced in 3.2.0 but not in 3.4.0, mark as Fixed in 3.4.0\r\n\r\nReopening.", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-08-14T16:09:05.000+0000", "updated": "2014-08-14T16:09:05.000+0000" }, { "id": "319420", "author": { "name": "shameerj", "key": "shameerj", "displayName": "Shameer Jan", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Issue reproduces on SDK version 3.2.0\r\nCannot reproduces on SDK version 3.4.0\r\n\r\nTitanium Command-Line Interface, \r\nCLI version 3.3.0, \r\nTitanium SDK version 3.4.0.GA \r\nTitanium SDK version 3.2.0.GA\r\n\r\niOS SDK: 7.1 \r\niOS iPhone Simulator: 7.1", "updateAuthor": { "name": "shameerj", "key": "shameerj", "displayName": "Shameer Jan", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-08-20T04:34:13.000+0000", "updated": "2014-08-20T04:34:47.000+0000" }, { "id": "319572", "author": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "body": "h5. Actual result\r\n{code}\r\n[INFO] : e.row =[object TiUITableViewRow], e.source = [object TiUITableViewRow]\r\n[INFO] : e.row =[object TiUITableViewRow], e.source = [object TiUITableViewRow]\r\n{code}\r\n\r\nTested environment\r\nMac osx 1-.9.4 Maverics\r\nAppcelerator Studio, build: 3.4.0.201408180158\r\nNode.JS Version: v0.10.28\r\nNPM Path: /usr/local/bin/npm\r\nNPM Version: 1.4.23\r\nacs@1.0.16\r\nalloy@1.5.0-dev (git://github.com/appcelerator/alloy.git#b2e8f580d023e45c63072df924666e58193a8981)\r\ninstall@0.1.7\r\nnpm@1.4.23\r\nsudo@1.0.3\r\ntitanium@3.4.0-dev (git://github.com/appcelerator/titanium.git#9079326639c7f610dafee33dd16742de7d92d795)\r\ntitanium-code-processor@1.1.1\r\nXcode6\r\nDevice: iPhone 5c iOS 7.1\r\n", "updateAuthor": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-08-20T22:47:24.000+0000", "updated": "2014-08-20T22:47:24.000+0000" } ], "maxResults": 7, "total": 7, "startAt": 0 } } }