{ "id": "100375", "key": "TIMOB-10956", "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": "15547", "description": "2013 Sprint 14", "name": "2013 Sprint 14", "archived": true, "released": true, "releaseDate": "2013-07-15" }, { "id": "15548", "description": "2013 Sprint 14 API", "name": "2013 Sprint 14 API", "archived": true, "released": true, "releaseDate": "2013-07-15" }, { "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": "2013-07-09T18:08:57.000+0000", "created": "2012-09-04T06:44:38.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "exalture", "module_view", "parity", "qe-testadded" ], "versions": [ { "id": "14096", "description": "Release 2.1.2", "name": "Release 2.1.2", "archived": true, "released": true, "releaseDate": "2012-08-31" }, { "id": "14162", "description": "Release 3.1.0", "name": "Release 3.1.0", "archived": true, "released": true, "releaseDate": "2013-04-16" } ], "issuelinks": [], "assignee": { "name": "sunila", "key": "sunila", "displayName": "Sunila", "active": true, "timeZone": "Asia/Kolkata" }, "updated": "2014-06-19T12:43:55.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": "a test code will explain it better!\r\n{code}\r\nvar win = Ti.UI.createWindow({ backgroundColor: '#fff' });\r\n\r\nvar label = Ti.UI.createLabel({\r\n text: 'Touch the Button!',\r\n verticalAlign:'top',\r\n top: 0, right: 0, left: 0\r\n});\r\nwin.add(label);\r\n\r\nvar view = Ti.UI.createView({\r\n backgroundColor:'red',\r\n // borderWidth:2,\r\n // borderColor:'black',\r\n top:0,\r\n width:100,\r\n height:100\r\n});\r\nview.transform = Ti.UI.create2DMatrix().translate(0,100);\r\nwin.add(view);\r\n\r\n\r\nwin.addEventListener('touchstart', function(e) {\r\n var point = e.source.convertPointToView({x:e.x,y:e.y}, view);\r\n label.text = point.x + ',' + point.y;\r\n});\r\n\r\nwin.open();\r\n{code}", "attachment": [ { "id": "31178", "filename": "test_android.png", "author": { "name": "farfromrefuge", "key": "farfromrefuge", "displayName": "Martin Guillon", "active": false, "timeZone": "Europe/Berlin" }, "created": "2012-09-12T00:09:14.000+0000", "size": 12441, "mimeType": "image/png" }, { "id": "31179", "filename": "test_iphone.png", "author": { "name": "farfromrefuge", "key": "farfromrefuge", "displayName": "Martin Guillon", "active": false, "timeZone": "Europe/Berlin" }, "created": "2012-09-12T00:09:14.000+0000", "size": 15786, "mimeType": "image/png" } ], "flagged": false, "summary": "Android: ConvertPointToView doesnt take transform in account", "creator": { "name": "farfromrefuge", "key": "farfromrefuge", "displayName": "Martin Guillon", "active": false, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "farfromrefuge", "key": "farfromrefuge", "displayName": "Martin Guillon", "active": false, "timeZone": "Europe/Berlin" }, "environment": "titanium 2.2.0 (master)\r\nandroid 3.2", "comment": { "comments": [ { "id": "218426", "author": { "name": "nsharma", "key": "nsharma", "displayName": "Nikhil Sharma", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Hi, \r\nI tested the above sample testcase with Ti SDK 2.1.2.GA and latest CI build. It works same on both android and iOS. Could you please provide me a screenshot of your device and please explain the problem?", "updateAuthor": { "name": "nsharma", "key": "nsharma", "displayName": "Nikhil Sharma", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-09-11T13:49:19.000+0000", "updated": "2012-09-11T13:49:19.000+0000" }, { "id": "218513", "author": { "name": "farfromrefuge", "key": "farfromrefuge", "displayName": "Martin Guillon", "active": false, "timeZone": "Europe/Berlin" }, "body": "Look at the screen shots. The value on iphone corresponds to where the pointer is.\r\nOn android it s not the case, it says 110 as if the square where not transformed.\r\n\r\nRemember that the value i print is relative to the red square\r\nios 5.1\r\nandroid 4.0\r\ntitanium 2.2.0 (master)", "updateAuthor": { "name": "farfromrefuge", "key": "farfromrefuge", "displayName": "Martin Guillon", "active": false, "timeZone": "Europe/Berlin" }, "created": "2012-09-12T00:10:50.000+0000", "updated": "2012-09-12T00:10:50.000+0000" }, { "id": "239529", "author": { "name": "shameerj", "key": "shameerj", "displayName": "Shameer Jan", "active": true, "timeZone": "America/Los_Angeles" }, "body": "The issue can reproduced with release 3.0.2 and latest master version 3.1.0 .\r\n \r\n\r\nTested on:\r\nTitanium Studio, build: 2.1.2.201208301612\r\nTitanium SDK version: 3.1.0 (23/02/2013)\r\nTitanium SDK version: 3.0.2 (23/02/2013)\r\nDevice: Samsung galaxy s duos Android version: 4.0.4\r\n\r\n\r\nThe displayed values are not relative to the red square. ", "updateAuthor": { "name": "shameerj", "key": "shameerj", "displayName": "Shameer Jan", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-02-23T12:27:17.000+0000", "updated": "2013-03-02T11:50:14.000+0000" }, { "id": "257163", "author": { "name": "sunila", "key": "sunila", "displayName": "Sunila", "active": true, "timeZone": "Asia/Kolkata" }, "body": "Remove translation effect from the point if there is a transformation\r\n\r\nhttps://github.com/appcelerator/titanium_mobile/pull/4375", "updateAuthor": { "name": "sunila", "key": "sunila", "displayName": "Sunila", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2013-06-11T16:21:53.000+0000", "updated": "2013-06-11T16:21:53.000+0000" }, { "id": "276553", "author": { "name": "djha", "key": "djha", "displayName": "Dhirendra Jha", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Test Environment - \r\nAppc Studio - 3.2.0.201310230601\r\nSDK - 3.2.0.v20131023171643\r\nacs - 1.0.7\r\nalloy - 1.2.2\r\ntitanium - 3.2.0\r\ntitanium-code-processor - 1.0.3\r\nXcode - 5.0\r\nDevices - iPhone5(v7.0.2), Nexus7(v4.3), Android Emulator 2.3.3\r\nResult - Now it works correctly on both Android as well as iOS. Hence closing this issue.", "updateAuthor": { "name": "djha", "key": "djha", "displayName": "Dhirendra Jha", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-10-24T08:47:05.000+0000", "updated": "2013-10-24T08:47:26.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }