{ "id": "139292", "key": "TIMOB-18049", "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": "2017-06-29T18:42:09.000+0000", "created": "2014-11-08T09:14:30.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "2DMatrix", "Android", "MobileWeb", "Rotation" ], "versions": [], "issuelinks": [], "assignee": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-08-16T01:10:21.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": "11500", "name": "MobileWeb", "description": "Mobile Web (HTML) Platform" } ], "description": "Hi,\r\nIt appears you cant rotate a matrix that you configure with rotation. This gives you a runtime error:\r\n{code}\r\nvar matrix = Ti.UI.create2DMatrix({ \r\n\trotate: 45\r\n});\r\nmatrix.rotate(45);\r\n{code}\r\nMessage: Uncaught TypeError: Property 'rotate' of object #<2DMatrix> is not a function", "attachment": [], "flagged": false, "summary": "Andriod and Mobile Web: Rotation issues in 2DMatrix", "creator": { "name": "7daysofrain", "key": "7daysofrain", "displayName": "Joseba Alonso", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "7daysofrain", "key": "7daysofrain", "displayName": "Joseba Alonso", "active": true, "timeZone": "Europe/Berlin" }, "environment": "SDK 3.4.0.GA", "comment": { "comments": [ { "id": "332687", "author": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "body": "Problem can be reproduced on Android and Mobile Web. Work well on IOS.\r\nHere is sample test case:\r\n{code}\r\nvar win = Ti.UI.createWindow({\r\n backgroundColor: 'white'\r\n});\r\n\r\nvar label = Ti.UI.createLabel({\r\n font:{fontSize:50},\r\n text:'Titanium',\r\n textAlign:'center',\r\n top: 100\r\n});\r\nwin.add(label);\r\n\r\nvar button = Ti.UI.createButton({\r\n title:'Animate',\r\n bottom:20,\r\n width:200, height:40\r\n});\r\nwin.add(button);\r\n\r\nbutton.addEventListener('click', function(){\r\n var t1 = Ti.UI.create2DMatrix({\r\n \trotate:15\r\n });\r\n \r\n t1 = t1.rotate(30);\r\n t1 = t1.translate(0, 300);\r\n var a1 = Ti.UI.createAnimation();\r\n a1.transform = t1;\r\n a1.duration = 800;\r\n label.animate(a1);\r\n});\r\nwin.open();\r\n{code}", "updateAuthor": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "created": "2014-11-18T10:47:30.000+0000", "updated": "2014-11-18T10:47:30.000+0000" }, { "id": "332689", "author": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "body": "Only work around is do not configure rotate property when you create the matrix.", "updateAuthor": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "created": "2014-11-18T11:01:28.000+0000", "updated": "2014-11-18T11:01:28.000+0000" }, { "id": "423170", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Resolving ticket as \"Won't fix\" as MobileWeb has been deprecated.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-06-29T18:42:09.000+0000", "updated": "2017-06-29T18:42:09.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }