{ "id": "99729", "key": "TIMOB-11039", "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": "14162", "description": "Release 3.1.0", "name": "Release 3.1.0", "archived": true, "released": true, "releaseDate": "2013-04-16" }, { "id": "14621", "description": "2012 Sprint 23 API", "name": "2012 Sprint 23 API", "archived": true, "released": true, "releaseDate": "2012-11-19" }, { "id": "14623", "description": "2012 Sprint 23 JS", "name": "2012 Sprint 23", "archived": true, "released": true, "releaseDate": "2012-11-19" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-11-16T09:09:33.000+0000", "created": "2012-08-24T08:51:38.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "api", "module_views", "qe-3.0.1", "qe-testadded", "regression" ], "versions": [ { "id": "13505", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": true, "released": true, "releaseDate": "2012-12-14" } ], "issuelinks": [], "assignee": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2014-06-19T12:43:11.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": "i get that log\r\n08-24 15:41:24.173: I/TiAPI(29514): cropRectView postlayout {\"height\":300,\"y\":0,\"x\":0,\"width\":200}\r\n\r\nusing that code\r\n{code}\r\n\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\nwithout the borders i get that result\r\n08-24 15:50:08.653: I/TiAPI(29981): cropRectView postlayout {\"height\":300,\"y\":60,\"x\":100,\"width\":200}\r\n", "attachment": [], "flagged": false, "summary": "Android: Rect not reported correcty when view has borders", "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)", "comment": { "comments": [ { "id": "220089", "author": { "name": "btran", "key": "btran", "displayName": "Betty Tran", "active": true, "timeZone": "America/Los_Angeles" }, "body": "This is working in 2.1.2GA.", "updateAuthor": { "name": "btran", "key": "btran", "displayName": "Betty Tran", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-09-21T03:42:49.000+0000", "updated": "2012-09-21T03:42:49.000+0000" }, { "id": "225926", "author": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "body": "https://github.com/appcelerator/titanium_mobile/pull/3372", "updateAuthor": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-11-01T23:35:37.000+0000", "updated": "2012-11-01T23:35:37.000+0000" }, { "id": "235055", "author": { "name": "amittal", "key": "amittal", "displayName": "Anshu Mittal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested with: \r\nSDK:3.1.0.v20130114171802\r\nStudio:3.0.1.201212181159\r\nDevice: LG-p970", "updateAuthor": { "name": "amittal", "key": "amittal", "displayName": "Anshu Mittal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-01-21T02:42:28.000+0000", "updated": "2013-01-21T02:42:28.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }