{ "id": "142146", "key": "TIMOB-19984", "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": "17608", "name": "Release 6.1.0", "archived": false, "released": true, "releaseDate": "2017-05-26" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2016-12-06T01:31:22.000+0000", "created": "2014-12-30T11:37:15.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "Community", "TCSupportTriage", "android", "animation", "qe-6.1.0", "transform" ], "versions": [], "issuelinks": [], "assignee": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2016-12-08T19:10:35.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": "1. Create a view with an initial transform (it is important that an initial transform matrix is set)\r\n2. Add the view\r\n3. Call animate\r\n\r\nThe animation will not work and the animation callback is not executed.\r\n\r\nNotes:\r\n1. This problem is specific to *transform* animation. If the view is animated with left/right/top/bottom for example, everything works fine.\r\n2. Deferring the animation, for example by putting it in a setTimeout callback, works if the timeout is long enough.\r\n\r\n*Sample code* - run this, click the button and view the result.\r\n\r\n{code}\r\nvar window=Ti.UI.createWindow({backgroundColor:'white'});\r\n\r\nmainView=Ti.UI.createView({backgroundColor:'white'});\r\nwindow.add(mainView);\r\n\r\nbutton=Ti.UI.createButton({left:0,right:0,height:40,bottom:0,title:'start'});\r\nbutton.addEventListener('click',function(e) {\r\n Ti.API.info(\"********** start **********\")\r\n var view=Ti.UI.createView({backgroundColor:'red',left:40,right:0,top:0,bottom:40,transform:Ti.UI.create2DMatrix().scale(0.1)});\r\n mainView.add(view);\r\n view.animate({left:0,transform:Ti.UI.create2DMatrix().scale(1),duration:500},function() {\r\n Ti.API.info(\"********** end **********\")\r\n mainView.remove(view);\r\n view=null;\r\n });\r\n});\r\nmainView.add(button);\r\n\r\nwindow.open();\r\n{code}", "attachment": [], "flagged": false, "summary": "Android: transform animation doesn't work immediately after creating a view [android]", "creator": { "name": "buddyguards", "key": "buddyguards", "displayName": "grebulon", "active": true, "timeZone": "Asia/Jerusalem" }, "subtasks": [], "reporter": { "name": "buddyguards", "key": "buddyguards", "displayName": "grebulon", "active": true, "timeZone": "Asia/Jerusalem" }, "environment": "Titanium 3.4.1, android", "closedSprints": [ { "id": 770, "state": "closed", "name": "2016 Sprint 25 SDK", "startDate": "2016-12-03T01:53:07.491Z", "endDate": "2016-12-17T01:53:00.000Z", "completeDate": "2016-12-21T03:19:43.884Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "376503", "author": { "name": "buddyguards", "key": "buddyguards", "displayName": "grebulon", "active": true, "timeZone": "Asia/Jerusalem" }, "body": "This bug is very annoying? I don't understand how you keep delaying it again and again. It's been over a year!", "updateAuthor": { "name": "buddyguards", "key": "buddyguards", "displayName": "grebulon", "active": true, "timeZone": "Asia/Jerusalem" }, "created": "2016-02-10T08:46:38.000+0000", "updated": "2016-02-10T08:46:38.000+0000" }, { "id": "401803", "author": { "name": "buddyguards", "key": "buddyguards", "displayName": "grebulon", "active": true, "timeZone": "Asia/Jerusalem" }, "body": "High priority bug, reported 30/Dec/14 (Titanium 3.4.1)", "updateAuthor": { "name": "buddyguards", "key": "buddyguards", "displayName": "grebulon", "active": true, "timeZone": "Asia/Jerusalem" }, "created": "2016-11-24T10:53:40.000+0000", "updated": "2016-11-24T10:53:40.000+0000" }, { "id": "402247", "author": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "body": "master: https://github.com/appcelerator/titanium_mobile/pull/8642", "updateAuthor": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-11-30T08:07:39.000+0000", "updated": "2016-11-30T08:07:39.000+0000" }, { "id": "403006", "author": { "name": "jlongton", "key": "jlongton", "displayName": "Josh Longton", "active": true, "timeZone": "Europe/London" }, "body": "Verified as fixed adding an animation to run immediately after creation works as expected.\r\nTested on:\r\n\r\n{noformat}\r\nmacOS Sierra 10.12.1\r\nNexus 5X(6.0.1)\r\nNexus 6p (7.0)\r\nandroid emulator (4.4.2, 6.0)\r\nTi SDK: 6.1.0.v20161207121046\r\nAppc NPM: 4.2.8\r\nApp CLI: 6.1.0-309\r\nNode v4.4.7\r\n{noformat}\r\n\r\n*Closing Ticket.*", "updateAuthor": { "name": "jlongton", "key": "jlongton", "displayName": "Josh Longton", "active": true, "timeZone": "Europe/London" }, "created": "2016-12-08T19:10:11.000+0000", "updated": "2016-12-08T19:10:11.000+0000" } ], "maxResults": 7, "total": 7, "startAt": 0 } } }