{ "id": "112562", "key": "TIMOB-13488", "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": null, "resolutiondate": null, "created": "2013-04-08T23:41:03.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "parity" ], "versions": [ { "id": "14164", "description": "Release 3.0.2", "name": "Release 3.0.2", "archived": true, "released": true, "releaseDate": "2013-02-19" }, { "id": "14162", "description": "Release 3.1.0", "name": "Release 3.1.0", "archived": true, "released": true, "releaseDate": "2013-04-16" } ], "issuelinks": [], "assignee": null, "updated": "2018-02-28T20:03:32.000+0000", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "components": [], "description": "*Problem description*\r\nWhen a view has a border and is rotated with matrix transforms, only the fill of the view is rotated - the border remains stationary. This is a parity issue since it works fine on iOS.\r\n\r\n*Steps to reproduce*\r\n1. Run test case.\r\n2. Tap rotate a number of times.\r\n3. Observe that only the fill colour rotates, the border remains stationary.\r\n\r\n*Test case*\r\n{code}\r\nvar win = Ti.UI.createWindow({\r\n\tbackgroundColor : \"#FFF\"\r\n});\r\n\r\nvar viewToRotate = Ti.UI.createView();\r\n\r\nvar selectionCircle = Ti.UI.createView({\r\n\tbackgroundColor : 'yellow',\r\n\topacity : 0.6,\r\n\tborderWidth : 3,\r\n\tborderColor : \"black\",\r\n\tborderRadius : 25,\r\n\ttop : 250,\r\n\tleft : 250,\r\n\theight : 300,\r\n\twidth : 50,\r\n});\r\n\r\nviewToRotate.add(selectionCircle);\r\n\r\nvar rotateButton = Ti.UI.createButton({\r\n\tbottom : 10,\r\n\twidth : 100,\r\n\ttitle : 'Rotate'\r\n});\r\n\r\nvar selectionRotation = 0;\r\n\r\nrotateButton.addEventListener('click', function(e) {\r\n\tselectionRotation = selectionRotation + 45;\r\n\tvar rotateSelection = Ti.UI.create2DMatrix({\r\n\t\trotate : (selectionRotation)\r\n\t});\r\n\tselectionCircle.transform = rotateSelection;\r\n});\r\n\r\nviewToRotate.add(rotateButton);\r\n\r\nwin.add(viewToRotate);\r\nwin.open();\r\n{code}", "attachment": [], "flagged": false, "summary": "Android: Border of a view does not rotate with matrix transform, works on iOS", "creator": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "246548", "author": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested and confirmed on Samsung Galaxy S2 Android 2.3.6 with Ti SDK 3.0.2 GA and latest 3.1 CI.", "updateAuthor": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-04-08T23:43:24.000+0000", "updated": "2013-04-08T23:43:24.000+0000" }, { "id": "300356", "author": { "name": "mcvendrell", "key": "mcvendrell", "displayName": "Manuel Conde Vendrell", "active": true, "timeZone": "Europe/Madrid" }, "body": "Also happens with Ti 3.2.1GA on Sony MT27 with Android 4.0.3 (and on emulator).\r\n\r\nIn my case I was trying to translate a borderRadius=5 label. If I set borderRadius, translation moves the content, but not the border.\r\n\r\nTo solve it I include the label in a view and translate the view instead.", "updateAuthor": { "name": "mcvendrell", "key": "mcvendrell", "displayName": "Manuel Conde Vendrell", "active": true, "timeZone": "Europe/Madrid" }, "created": "2014-04-09T15:45:01.000+0000", "updated": "2014-04-09T15:45:01.000+0000" }, { "id": "304307", "author": { "name": "JuanuMusic", "key": "juanumusic", "displayName": "Juan Manuel Haedo", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Still having the same problem on version 3.2.3", "updateAuthor": { "name": "JuanuMusic", "key": "juanumusic", "displayName": "Juan Manuel Haedo", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-05-11T07:59:31.000+0000", "updated": "2014-05-11T07:59:31.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }