{ "id": "115184", "key": "TIMOB-14023", "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": "14982", "description": "Release 3.2.0", "name": "Release 3.2.0", "archived": false, "released": true, "releaseDate": "2013-12-19" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2014-02-11T21:43:53.000+0000", "created": "2013-05-30T11:26:55.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "android", "ios", "mobilesdk", "qe-closed-3.2.3", "titanium" ], "versions": [ { "id": "14162", "description": "Release 3.1.0", "name": "Release 3.1.0", "archived": true, "released": true, "releaseDate": "2013-04-16" }, { "id": "15478", "description": "Release 3.1.1", "name": "Release 3.1.1", "archived": true, "released": true, "releaseDate": "2013-06-17" } ], "issuelinks": [], "assignee": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2014-06-19T12:43:02.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" }, { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "Adding a view object to tableViewRow object, does not provide proper touch co-ordinates in window touchstart event.\r\n\r\n**Another way to say the same is:**\r\nAdding a view object to tableViewRow object, does not allow to get absolute co-ordinates over window to find where touch happened.\r\n\r\n{code}\r\nvar win = Ti.UI.createWindow({\r\n\tbackgroundColor : 'gray'\r\n});\r\n\r\nvar data = [];\r\n\r\nvar tbView = Ti.UI.createTableView({\r\nbubbleParent:true\r\n});\r\n\r\nvar view1 = Ti.UI.createView({\r\nheight:\"100dp\",\r\nwidth:\"100dp\",\r\nbackgroundColor:\"blue\",\r\nzIndex:10,\r\nvisible:false\r\n});\r\n\r\nfor (var i = 0; i < 4; i++) {\r\n\r\n\tvar rowview1 = Ti.UI.createView({\r\n\t\theight : \"30dp\",\r\n\t\twidth : \"320dp\",\r\n\t\tbackgroundColor : \"yellow\",\r\n\t});\r\n\t\r\n\tvar rowview1lable = Ti.UI.createLabel({\r\n\t\ttext:\"row : \" + i,\r\n\t\tbackgroundColor : \"yellow\",\r\n\t});\r\n\t\r\n\trowview1.add(rowview1lable);\r\n\t\r\n\tvar row = Ti.UI.createTableViewRow({\r\n\t\theight:\"60dp\",\r\n\t\twidth:\"320dp\",\r\n\t\ttitle : \"row : \"+i,\r\n\t\tbubbleParent : true\r\n\t});\r\n\r\n\trow.add(rowview1); // commenting this will work the way it should, window touch start will get correct x, y co-ordinates.\r\n\t\r\n\tdata.push(row);\r\n}\r\n\r\ntbView.data = data;\r\n\r\nwin.add(tbView);\r\n\r\nwin.addEventListener(\"touchstart\", function(e) {\r\n\tview1.top = e.y;\r\n\tview1.left = e.x;\r\n\r\n\tview1.visible = true;\r\n\twin.add(view1);\r\n\tsetTimeout(function() {\r\n\t\tview1.visible = false;\r\n\t\twin.remove(view1);\r\n\r\n\t}, 2000);\r\n});\r\n\r\nwin.open(); \r\n{code}\r\n", "attachment": [], "flagged": false, "summary": "iOS & Android: Adding view to Table View Row object does not provide proper x, y co-ordinates in window touchstart event.", "creator": { "name": "anigam", "key": "anigam", "displayName": "Ashish Nigam", "active": true, "timeZone": "Asia/Kolkata" }, "subtasks": [], "reporter": { "name": "anigam", "key": "anigam", "displayName": "Ashish Nigam", "active": true, "timeZone": "Asia/Kolkata" }, "environment": "Titanium Mobile SDK, iOS, Android.", "comment": { "comments": [ { "id": "257362", "author": { "name": "anigam", "key": "anigam", "displayName": "Ashish Nigam", "active": true, "timeZone": "Asia/Kolkata" }, "body": "Tested the sample again with convertPointToView method as discussed in escalation meeting, and issue is no more valid as this method is working as expected and i get the destination (required view co-ordinates).", "updateAuthor": { "name": "anigam", "key": "anigam", "displayName": "Ashish Nigam", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2013-06-12T12:23:22.000+0000", "updated": "2013-06-12T12:23:22.000+0000" }, { "id": "292470", "author": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Resolving as per Ashish's comment on 12/Jun/13", "updateAuthor": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2014-02-11T21:43:53.000+0000", "updated": "2014-02-11T21:43:53.000+0000" }, { "id": "301392", "author": { "name": "prastogi", "key": "prastogi", "displayName": "Pragya Rastogi", "active": true, "timeZone": "Asia/Kolkata" }, "body": "Verified the fix: \r\nOSX: 10.9.2\r\nXcode: 5.1\r\nAppcelerator Studio: 3.2.3.201404151910\r\nSDK: 3.2.3.v20140414150917\r\nacs:1.0.14\r\nalloy:1.3.1\r\nnpm:1.3.2\r\ntitanium:3.2.3-alpha3\r\ntitanium-code-processor:1.1.1-alpha\r\nDevice: Iphone 5 (7.1) & Galaxy Nexus 4.1.1", "updateAuthor": { "name": "prastogi", "key": "prastogi", "displayName": "Pragya Rastogi", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2014-04-18T09:33:47.000+0000", "updated": "2014-04-18T09:33:47.000+0000" } ], "maxResults": 7, "total": 7, "startAt": 0 } } }