{ "id": "93084", "key": "TIMOB-9493", "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": "13271", "description": "Release 2.1.0", "name": "Release 2.1.0", "archived": false, "released": true, "releaseDate": "2012-06-29" }, { "id": "13404", "description": "Sprint 2012-12 Core", "name": "Sprint 2012-12 Core", "archived": true, "released": true, "releaseDate": "2012-06-17" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-06-18T12:17:25.000+0000", "created": "2012-06-12T02:27:59.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "core", "module_animation", "qe-and060112", "qe-testadded", "regression" ], "versions": [ { "id": "13271", "description": "Release 2.1.0", "name": "Release 2.1.0", "archived": false, "released": true, "releaseDate": "2012-06-29" } ], "issuelinks": [], "assignee": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "updated": "2012-07-05T12:05:34.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": "Animating a view by both rotating and scaling it does not work correctly.\r\n\r\nThis is a Regression. The behavior does not happen on 2.0.2\r\n\r\nSteps To Reproduce:\r\n1. Create an application with Sample Code-1 and run the application\r\n2. Click on the Red View\r\n3. Create an application with Sample Code-2 (which has Scale of 2D-Matrix defined before rotation) and run the application\r\n4. Click on the Red View\r\n\r\nActual: \r\nAfter Step 2: The red view animates. The view gets scaled but does not rotate\r\nAfter Step 4: The red view animates. The view gets scaled from a size of 0,0 to the scaled size of original view\r\n\r\nExpected: The red view show animate with both rotation and scaling\r\n\r\nSample Code-1\r\n{code}\r\nvar win = Ti.UI.createWindow({\r\n\tbackgroundColor:'green'\r\n});\r\n\r\nvar box = Ti.UI.createView({\r\n\t\t\tbackgroundColor : 'red',\r\n\t\t\theight : '150',\r\n\t\t\twidth : '100'\r\n\t\t});\r\n\r\n\t\tbox.addEventListener('click', function() {\r\n\t\t\tvar matrix = Ti.UI.create2DMatrix()\r\n\t\t\tmatrix = matrix.rotate(90);\r\n\t\t\tmatrix = matrix.scale(2, 2);\r\n\t\t\tvar a = Ti.UI.createAnimation({\r\n\t\t\t\ttransform : matrix,\r\n\t\t\t\tduration : 2000,\r\n\t\t\t\tautoreverse : true,\r\n\t\t\t\trepeat : 3\r\n\t\t\t});\r\n\t\t\tbox.animate(a);\r\n\t\t});\r\n\t\twin.add(box);\r\nwin.open();\r\n{code}\r\n\r\nSample Code-2\r\n{code}\r\nvar win = Ti.UI.createWindow({\r\n\tbackgroundColor:'green'\r\n});\r\n\r\nvar box = Ti.UI.createView({\r\n\t\t\tbackgroundColor : 'red',\r\n\t\t\theight : '150',\r\n\t\t\twidth : '100'\r\n\t\t});\r\n\r\n\t\tbox.addEventListener('click', function() {\r\n\t\t\tvar matrix = Ti.UI.create2DMatrix()\r\n\t\t\tmatrix = matrix.scale(2, 2);\r\n matrix = matrix.rotate(90);\r\n\t\t\t\r\n\t\t\tvar a = Ti.UI.createAnimation({\r\n\t\t\t\ttransform : matrix,\r\n\t\t\t\tduration : 2000,\r\n\t\t\t\tautoreverse : true,\r\n\t\t\t\trepeat : 3\r\n\t\t\t});\r\n\t\t\tbox.animate(a);\r\n\t\t});\r\n\t\twin.add(box);\r\nwin.open();\r\n{code}", "attachment": [ { "id": "28439", "filename": "timob9207big.zip", "author": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "created": "2012-06-18T06:38:03.000+0000", "size": 3128768, "mimeType": "application/zip" } ], "flagged": false, "summary": "Android: Animation: Rotating and Scaling a view simultaneously does not work correctly", "creator": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Titanium Studio: 2.1.0.201206081630\r\nTitanium SDK: 2.1.0.v20120611174309\r\nAndroid Device: LGP970 (V2.2), Android Tab (V3.2), Galaxy Nexus (V4.0.2)\r\nRuntime: v8", "comment": { "comments": [ { "id": "198886", "author": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "body": "h3. Testing notes\r\n\r\nUse the attached timob9207big.zip. It contains a test for this item (timob-9493) plus for other items so as to test that I didn't regress them. Each test window contains a label describing the expected behavior.\r\n\r\nIf you run the timob-9493 test on the master branch, you'll see that it doesn't work, as explained by Satyam.\r\n\r\nIf you run it on my fix branch, it should work fine.", "updateAuthor": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "created": "2012-06-18T06:38:03.000+0000", "updated": "2012-06-18T06:38:03.000+0000" }, { "id": "198887", "author": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "body": "Pull request ready\r\n\r\nhttps://github.com/appcelerator/titanium_mobile/pull/2416", "updateAuthor": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "created": "2012-06-18T06:40:12.000+0000", "updated": "2012-06-18T06:40:12.000+0000" }, { "id": "198990", "author": { "name": "mpettiford", "key": "mpettiford", "displayName": "Michael Pettiford", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Closing issue\r\n\r\nTested with Ti Studio build 2.1.0.201206172244\r\nTi Mobile SDK2.1.0.v20120618134156 hash r00905cd0\r\nOSX Lion 10.7.3\r\niPhone 4S OS 5.1, Nexus S OS 4.0.4\r\n\r\nThe expected behavior is shown", "updateAuthor": { "name": "mpettiford", "key": "mpettiford", "displayName": "Michael Pettiford", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-06-18T15:20:14.000+0000", "updated": "2012-06-18T15:20:14.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }