{ "id": "123532", "key": "TIMOB-15938", "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": "2", "description": "The problem described is an issue which will never be fixed.", "name": "Won't Fix" }, "resolutiondate": "2013-12-10T18:32:32.000+0000", "created": "2013-12-10T11:39:47.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "qe-3.2.0" ], "versions": [ { "id": "14982", "description": "Release 3.2.0", "name": "Release 3.2.0", "archived": false, "released": true, "releaseDate": "2013-12-19" } ], "issuelinks": [], "assignee": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2014-06-19T12:43:32.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": "Rect not reported when view has borders or have no borders.\r\n\r\n{code}\r\nvar win = Ti.UI.createWindow({\r\n backgroundColor:'white'\r\n});\r\n \r\nvar cropRectView = Ti.UI.createView({\r\n width:200,\r\n height:300,\r\n left:100,\r\n top:60,\r\n backgroundColor:'#5500ff00',\r\n borderWidth:2,\r\n borderColor:'white'\r\n});\r\n \r\n \r\ncropRectView.addEventListener('postlayout', function(e){\r\n Ti.API.info('cropRectView postlayout ' + JSON.stringify(cropRectView.rect));\r\n});\r\n \r\nwin.add(cropRectView);\r\n \r\nwin.open();\r\n{code}\r\n\r\nSteps to reproduce:\r\n1)Copy paste the code in app.js and run the app. Observe the console\r\n\r\nExpected Result:\r\ncropRectView postlayout {\"height\":300,\"y\":60,\"x\":100,\"width\":200}\r\n\r\nActual Result:\r\ncropRectView postlayout {}\r\n\r\n\r\nWorks fine on android.\r\n", "attachment": [], "flagged": false, "summary": "iOS: Rect not reported when view has borders or have no borders ", "creator": { "name": "pagarwal", "key": "pagarwal", "displayName": "Priya Agarwal", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "pagarwal", "key": "pagarwal", "displayName": "Priya Agarwal", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Tested Environment:\r\n\r\nAppcelerator Studio: 3.2.0.201312091648\r\nSDK:3.2.0.v20131209192649\r\nalloy: 1.3.0-cr\r\nacs: 1.0.10\r\nnpm: 1.3.2\r\ntitanium: 3.2.0-cr\r\ntitanium-code-processor: 1.1.0-cr\r\nXcode:5.0.2\r\nOS: Mac OSX 10.9\r\nDevice: iPhone5S(v7.0.2)", "comment": { "comments": [ { "id": "283580", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "On iOS we return a TiRect object which is of type Proxy. Proxies by default are not seralizable so we return null on the toJSON call.\r\n\r\nSo stringify will return nothing.\r\n\r\nThe values x,y,width and height are still accessible though.\r\n\r\n{code}\r\nvar rect = cropRectView.rect;\r\nTi.API.info(rect.x+' '+rect.y+' '+rect.width+' '+rect.height)\r\n{code}", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-12-10T18:32:32.000+0000", "updated": "2013-12-10T18:32:32.000+0000" }, { "id": "283743", "author": { "name": "pagarwal", "key": "pagarwal", "displayName": "Priya Agarwal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested Environment:\r\n\r\nAppcelerator Studio: 3.2.0.201312101708\r\nSDK:3.2.0.v20131210191510\r\nalloy: 1.3.0-cr\r\nacs: 1.0.10\r\nnpm: 1.3.2\r\ntitanium: 3.2.0-cr\r\ntitanium-code-processor: 1.1.0-cr\r\nXcode:5.0.2\r\nOS: Mac OSX 10.9\r\nDevice: iPhone Simulator(v7.0.3)\r\n\r\n\r\nClosing as per above comments.\r\nVerified without stringifying: \r\n{code}\r\n var rect = cropRectView.rect;\r\n Ti.API.info(rect.x+' '+rect.y+' '+rect.width+' '+rect.height)\r\n{code}\r\nGetting the expected output.\r\nHence closing as fixed and verified.", "updateAuthor": { "name": "pagarwal", "key": "pagarwal", "displayName": "Priya Agarwal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-12-11T05:21:59.000+0000", "updated": "2013-12-11T05:21:59.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }