{ "id": "121302", "key": "TIMOB-15538", "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": [], "resolution": { "id": "3", "description": "The problem is a duplicate of an existing issue.", "name": "Duplicate" }, "resolutiondate": "2013-10-21T16:23:12.000+0000", "created": "2013-10-17T05:11:16.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "SupportTeam" ], "versions": [ { "id": "15593", "description": "Release 3.1.3", "name": "Release 3.1.3", "archived": true, "released": true, "releaseDate": "2013-09-18" } ], "issuelinks": [], "assignee": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2014-06-19T12:42:50.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": "h4. Problem Description\r\nWhen I press a label in first row of table view, it is returning [object TiUITableViewRow] instead of [object TiUILabel]. \r\nAll other rows, it is returning correct label [object TiUILabel]. \r\nWhat could be a reason for this issue happening for only first row? \r\nThis issue happens only with 3.1.3GA version when I compiled for iPhone/iPad.\r\n\r\nh4. Test case \r\n{code}\r\nvar win = Ti.UI.createWindow({\r\n});\r\n\r\nfunction makeRow () {\r\n var row = Ti.UI.createTableViewRow({\t\r\n\t\theight:45\r\n\t});\r\n\trow.add(Ti.UI.createLabel({\r\n\t\ttext:\"label\",\r\n\t\ttop:0,\r\n\t\tleft:15,\r\n\t\theight:30,\r\n\t\ttouchenabled: false,\r\n\t}));\r\n\treturn row; \r\n}\r\n\r\n \r\nvar table1 = Ti.UI.createTableView({\r\n top:60,\r\n\t left:0,\r\n\t right:20,\r\n\t bottom:40,\r\n});\r\n\r\nfunction refreshItemnames(){ \r\n \t\tfor(var i=0;i<25;i++)\r\n\t\t\ttable1.appendRow (makeRow());\r\n}\r\n\r\nrefreshItemnames();\r\n \r\ntable1.addEventListener('click', function(e) {\r\n Ti.API.info(\"e.row =\" + e.row + \", e.source = \" + e.source + \", e\"+e);\r\n});\r\nwin.add(table1);\r\nwin.open();\r\n{code}\r\n\r\nh4. Steps to reproduce\r\n1. Create a new mobile project for iOS7, with 3.1.3\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. Extra info\r\nLog when 1YY label is clicked in TableView:\r\nFirst row output:\r\n[INFO] e.row =[object TiUITableViewRow], e.source = [object TiUILabel]\r\nSecond or any other row is clicked: \r\n[INFO] e.row =[object TiUITableViewRow], e.source = [object TiUITableViewRow]", "attachment": [ { "id": "43283", "filename": "app.js", "author": { "name": "muralinr", "key": "muralinr", "displayName": "Murali Rama", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-10-18T05:07:12.000+0000", "size": 1364, "mimeType": "application/x-javascript" }, { "id": "43258", "filename": "app.js", "author": { "name": "muralinr", "key": "muralinr", "displayName": "Murali Rama", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-10-17T05:11:16.000+0000", "size": 2729, "mimeType": "application/x-javascript" } ], "flagged": false, "summary": "iOS7: Clicking a label in first row of table view is not working on 3.1.3GA version", "creator": { "name": "muralinr", "key": "muralinr", "displayName": "Murali Rama", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "muralinr", "key": "muralinr", "displayName": "Murali Rama", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Mobile SDK: 3.1.3\r\nMobile OS: iOS7", "comment": { "comments": [ { "id": "275571", "author": { "name": "jbuckley", "key": "jbuckley", "displayName": "Jamie Buckley", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Hi Murali,\n\nYour test case contains a lot of extra code to demonstrate this issue, have you been able to reproduce this with the bare minimum code? if so can you provide the sample for this? Thanks.", "updateAuthor": { "name": "jbuckley", "key": "jbuckley", "displayName": "Jamie Buckley", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-10-18T01:34:44.000+0000", "updated": "2013-10-18T01:34:44.000+0000" }, { "id": "275580", "author": { "name": "muralinr", "key": "muralinr", "displayName": "Murali Rama", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Hi Jamie,\nI removed further code and provided minimal code to reproduce this issue. It is attached new \"app.js\" file which is uploaded.\n\nLog when YY label is clicked in TableView:\nFirst row output:\n[INFO] e.row =[object TiUITableViewRow], e.source = [object TiUITableViewRow]\n\nSecond or any other row is clicked: \n[INFO] e.row =[object TiUITableViewRow], e.source = [object TiUILabel]\n", "updateAuthor": { "name": "muralinr", "key": "muralinr", "displayName": "Murali Rama", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-10-18T05:11:00.000+0000", "updated": "2013-10-18T05:11:00.000+0000" }, { "id": "275958", "author": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "updateAuthor": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "created": "2013-10-21T16:23:12.000+0000", "updated": "2013-10-21T16:23:12.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }