{ "id": "87747", "key": "TIMOB-8461", "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": "15273", "description": "2013 Sprint 05 API", "name": "2013 Sprint 05 API", "archived": true, "released": true, "releaseDate": "2013-03-11" }, { "id": "14815", "description": "2013 Sprint 05", "name": "2013 Sprint 05", "archived": true, "released": true, "releaseDate": "2013-03-11" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2013-07-15T11:52:05.000+0000", "created": "2012-03-12T13:15:47.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "api", "insight", "module_animation", "qe-testadded" ], "versions": [ { "id": "12593", "name": "Release 2.0.0", "archived": false, "released": true, "releaseDate": "2012-03-30" }, { "id": "12677", "description": "Release 1.8 Service Pack 1", "name": "Release 1.8.1", "archived": true, "released": true, "releaseDate": "2012-01-31" }, { "id": "13070", "description": "Release 1.8 Service Pack 2", "name": "Release 1.8.2", "archived": true, "released": true, "releaseDate": "2012-02-29" }, { "id": "13272", "description": "Release 2.0.1", "name": "Release 2.0.1", "archived": true, "released": true, "releaseDate": "2012-04-16" } ], "issuelinks": [ { "id": "16258", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "outwardIssue": { "id": "87740", "key": "AC-3019", "fields": { "summary": "View animate() not working with Ti.UI.createAnimation", "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" } }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "16302", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "outwardIssue": { "id": "82870", "key": "TIMOB-6227", "fields": { "summary": "Android: animate callback never gets executed when using Ti.UI.createAnimation", "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" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "26322", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "inwardIssue": { "id": "82871", "key": "TIMOB-6228", "fields": { "summary": "iOS: animate callback never gets executed when when using Ti.UI.createAnimation", "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" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2013-11-13T01:41:22.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": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "Using the following example we are unable to get the animate() function to call the completion CallBack function.\r\nThe bottom portion of the screen should slowly turn green then go black again.\r\n\r\n{code:title=app.js - Does not work |borderStyle=solid}\r\nTi.UI.setBackgroundColor('#000');\r\nvar win = Titanium.UI.createWindow({title:'Window'});\r\nvar TheView=Ti.UI.createView({height:'100',\r\n bottom:-100, \r\n backgroundColor:'green'});\r\nwin.add(TheView);\r\n\r\nvar RollUpObject=Ti.UI.createAnimation({bottom:1, duration: 2500});\r\nvar RollDownObject=Ti.UI.createAnimation({bottom:-100, duration: 2500});\r\n\r\nwin.open();\r\nTheView.animate(RollUpObject, \r\n function()\r\n {\r\n TheView.animate(RollDownObject)\r\n });\r\n{code} \r\n\r\nHowever if we create an object without using Ti.UI.createAnimation it works just fine!\r\n{code:title=app.js - Works |borderStyle=solid}\r\nTi.UI.setBackgroundColor('#000');\r\nvar win = Titanium.UI.createWindow({title:'Window'});\r\nvar TheView=Ti.UI.createView({height:'100',\r\n bottom:-100, \r\n backgroundColor:'green'});\r\nwin.add(TheView);\r\n\r\nvar RollUpObject={bottom:1, duration: 2500};\r\nvar RollDownObject={bottom:-100, duration: 2500};\r\n\r\nwin.open();\r\nTheView.animate(RollUpObject, \r\n function()\r\n {\r\n TheView.animate(RollDownObject)\r\n });\r\n{code} ", "attachment": [], "flagged": false, "summary": "iOS: View animate() not firing the CallBack with Ti.UI.createAnimation", "creator": { "name": "peteberry@ewrinc.com", "key": "peteberry@ewrinc.com", "displayName": "Pete Berry", "active": true, "timeZone": "America/New_York" }, "subtasks": [], "reporter": { "name": "peteberry@ewrinc.com", "key": "peteberry@ewrinc.com", "displayName": "Pete Berry", "active": true, "timeZone": "America/New_York" }, "environment": "Titanium Studio, build: 1.0.7.201112152014\r\nSDK versions 1.7.2 - 1.8.1\r\nAndroid API: Android 2.2 and Google APIs Android 2.3.3\r\nLG Optimus V", "comment": { "comments": [ { "id": "189370", "author": { "name": "bitshftr", "key": "bitshftr", "displayName": "Shawn Lipscomb", "active": true, "timeZone": "America/New_York" }, "body": "Not exactly the same as TC-718. This bug (TIMOB-8461) is about the \"completion\" callback (of the animate method) not firing. TC-718 is about the animation not running.", "updateAuthor": { "name": "bitshftr", "key": "bitshftr", "displayName": "Shawn Lipscomb", "active": true, "timeZone": "America/New_York" }, "created": "2012-03-30T19:26:35.000+0000", "updated": "2012-03-30T19:26:35.000+0000" }, { "id": "195545", "author": { "name": "jyounus", "key": "jyounus", "displayName": "Junaid Younus", "active": true, "timeZone": "Europe/London" }, "body": "Tested with 2.0.1GA2, issue still exists on a Samsung Galaxy S2 (2.3.6). \r\n\r\nI also tried it on the iOS simulator, when you use a Ti.UI.Animation object, the green view doesn't seem to move back down. If you don't use a Ti.UI.Animation object, it moves back down just fine.", "updateAuthor": { "name": "jyounus", "key": "jyounus", "displayName": "Junaid Younus", "active": true, "timeZone": "Europe/London" }, "created": "2012-05-21T16:32:48.000+0000", "updated": "2012-05-21T16:32:48.000+0000" }, { "id": "228342", "author": { "name": "meeech", "key": "meeech", "displayName": "Mitchell Amihod", "active": true, "timeZone": "America/New_York" }, "body": "In my case (Android), I found as long as the item was onscreen (even if not visible - hidden behind another element) then animation complete fires as usual. But if trying to position element totally offscreen, then you get the weird case of animation complete not firing until some sort of user interaction happens. I should stress this does NOT happen in the emulator - only on device. ", "updateAuthor": { "name": "meeech", "key": "meeech", "displayName": "Mitchell Amihod", "active": true, "timeZone": "America/New_York" }, "created": "2012-11-22T20:41:57.000+0000", "updated": "2012-11-22T21:50:29.000+0000" }, { "id": "240412", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "This was fixed on Android as part of TIMOB-6227", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-03-01T23:16:52.000+0000", "updated": "2013-03-01T23:16:52.000+0000" }, { "id": "240413", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Pull pending\r\nhttps://github.com/appcelerator/titanium_mobile/pull/3923", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-03-01T23:19:50.000+0000", "updated": "2013-03-01T23:19:50.000+0000" }, { "id": "241699", "author": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "body": "CR & FR ", "updateAuthor": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-03-12T02:27:20.000+0000", "updated": "2013-03-12T02:27:20.000+0000" }, { "id": "242195", "author": { "name": "pmishra", "key": "pmishra", "displayName": "Paras Mishra", "active": true, "timeZone": "Asia/Kolkata" }, "body": "Ti.UI.createAnimation is getting fired and working fine on iOS 6\r\n\r\nVerified on:\r\nDevice : iPad mini, iOS version: 6\r\nSDK version: 3.1.0.v20130313215655\r\nCLI version : 3.0.24\r\nOS : MAC OSX 10.7.5\r\nXCode : 4.5.1\r\n", "updateAuthor": { "name": "pmishra", "key": "pmishra", "displayName": "Paras Mishra", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2013-03-14T09:09:06.000+0000", "updated": "2013-03-14T09:09:06.000+0000" }, { "id": "261769", "author": { "name": "pagarwal", "key": "pagarwal", "displayName": "Priya Agarwal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Reopening just to update label.", "updateAuthor": { "name": "pagarwal", "key": "pagarwal", "displayName": "Priya Agarwal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-07-15T11:44:08.000+0000", "updated": "2013-07-15T11:44:08.000+0000" }, { "id": "261770", "author": { "name": "pagarwal", "key": "pagarwal", "displayName": "Priya Agarwal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Updated Label and Verified with:\r\n\r\nTitanium Studio:3.1.2.201307091843\r\nTitanium SDK: 3.1.2.v20130710144553\r\nacs:1.0.3\r\nalloy:1.1.3\r\nnpm:1.2.14\r\ntitanium:3.1.1\r\ntitanium-code-processor:1.0.1\r\nOS: OSX 10.8\r\nDevice:iPhone simulator(v 6.0), Iphone4(v 5.1), Galaxy Nexus(V 4.0.4)\r\nXcode: 4.5.1\r\n\r\nView animate() firing the CallBack with Ti.UI.createAnimation\r\n\r\n", "updateAuthor": { "name": "pagarwal", "key": "pagarwal", "displayName": "Priya Agarwal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-07-15T11:52:05.000+0000", "updated": "2013-07-15T11:52:05.000+0000" }, { "id": "279283", "author": { "name": "crossbits", "key": "crossbits", "displayName": "Danny Pham", "active": true, "timeZone": "Europe/Berlin" }, "body": "I have just noticed that the bug Mitchell is reporting \"... but if trying to position element totally offscreen, then you get the weird case of animation complete not firing until some sort of user interaction happens ...\" still occurrs in SDK 3.13 on real device only. Any bugfix for this?", "updateAuthor": { "name": "crossbits", "key": "crossbits", "displayName": "Danny Pham", "active": true, "timeZone": "Europe/Berlin" }, "created": "2013-11-13T01:41:22.000+0000", "updated": "2013-11-13T01:41:22.000+0000" } ], "maxResults": 10, "total": 10, "startAt": 0 } } }