{ "id": "113994", "key": "AC-2561", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2013-05-10T22:00:59.000+0000", "created": "2013-05-08T15:05:54.000+0000", "labels": [ "animate", "animated", "animation", "animations", "view" ], "versions": [], "issuelinks": [], "assignee": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2016-03-08T07:41:37.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": "14548", "name": "Titanium SDK & CLI", "description": "Please enter tickets related to the MobileSDK here." } ], "description": "Animating a view's position to a negative dimension doesn't work. The view is re-positioned, but with no animation as the following code demonstrates:\r\n\r\n{code}\r\nvar hidden = false;\r\n\r\nvar win = Ti.UI.createWindow();\r\nvar view = Ti.UI.createView({top:0,height:200});\r\nvar button = Ti.UI.createButton({bottom:0,title:'Toggle'});\r\n\r\nbutton.addEventListener('click', function () {\r\n myView.animate(Ti.UI.createAnimation({\r\n duration: 2000,\r\n delay: 0,\r\n top: hidden ? 0 : -200\r\n }));\r\n hidden = !hidden;\r\n});\r\n\r\nwin.add(view);\r\nwin.add(button);\r\nwin.open();\r\n{code}", "attachment": [], "flagged": false, "summary": "Animating a view's position to a negative dimension fails", "creator": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "subtasks": [], "reporter": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "environment": "SDK 3.1", "comment": { "comments": [ { "id": "250984", "author": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "body": "After further testing it seems like it does work, but only if there are not auto-sizes involved.", "updateAuthor": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "created": "2013-05-09T11:50:11.000+0000", "updated": "2013-05-09T11:50:11.000+0000" }, { "id": "251350", "author": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Which platform? Which platform OS version?\n\nSo are you saying the test case you provided in the description works?\n\nCan you provide a non-working example?", "updateAuthor": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-05-10T18:24:02.000+0000", "updated": "2013-05-10T18:24:02.000+0000" }, { "id": "251361", "author": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "body": "Sorry for this waisting your time on this issue. Even I can't reproduce it anymore. I think it was multiple factors involved that caused the strange behaviour I saw.\n\nClose it :)", "updateAuthor": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "created": "2013-05-10T19:33:05.000+0000", "updated": "2013-05-10T19:33:05.000+0000" }, { "id": "251391", "author": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Ok, no problem. Closing.", "updateAuthor": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-05-10T22:00:59.000+0000", "updated": "2013-05-10T22:00:59.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }