{ "id": "161536", "key": "TIMOB-23607", "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": "16980", "description": "New V8", "name": "Release 6.0.0", "archived": false, "released": true, "releaseDate": "2016-11-15" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2016-07-07T03:07:09.000+0000", "created": "2016-07-01T15:21:28.000+0000", "priority": { "name": "None", "id": "6" }, "labels": [ "qe-5.4.0" ], "versions": [ { "id": "17706", "name": "Release 5.4.0", "archived": false, "released": true, "releaseDate": "2016-08-11" } ], "issuelinks": [], "assignee": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2016-09-05T17:10:46.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": "12642", "name": "Windows", "description": "Windows authoring support" } ], "description": "h5.Description\r\n\r\nWhen animating a view and using the {{right}} property the view gets snapped back to the centre when the animation has completed.\r\n\r\nThis only happens for the right property, left, top and bottom work as expected.\r\n\r\n{code}\r\nvar win = Ti.UI.createWindow({ backgroundColor: 'green' });\r\nvar box = Ti.UI.createView({\r\n backgroundColor: 'red',\r\n left: 100,\r\n height: '100',\r\n width: '100'\r\n});\r\nwin.add(box);\r\n \r\nvar pos = 150;\r\nbox.addEventListener('click', function () {\r\n var a = Ti.UI.createAnimation({\r\n right: 200,\r\n bottom: 40,\r\n duration: 2000,\r\n });\r\n a.addEventListener('complete', function () {\r\n pos += 50;\r\n });\r\n box.animate(a);\r\n});\r\nwin.open();\r\n{code}\r\n\r\nh5.Steps to reproduce\r\n\r\n# Using the code above build to Windows Emulator or device\r\n# Click the red box\r\n\r\nh5.Actual result\r\n\r\nWhen the animation has finished the view will snap back to the centre of the screen\r\n\r\nh5.Expected result\r\n\r\n\r\nWhen the animation has finished the view should not snap back to the centre of the screen", "attachment": [], "flagged": false, "summary": "Windows: View gets snapped back to center when animating using the right property", "creator": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "subtasks": [], "reporter": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "environment": "Windows 10 Pro\r\nTi SDK: 5.4.0.v20160630074247\r\nAppc NPM: 4.2.7-2 \r\nAppc CLI: 5.4.0-23\r\nAppc Studio: 4.7.0.201606220541\r\nLumia 930: 10.0", "closedSprints": [ { "id": 678, "state": "closed", "name": "2016 Sprint 14 SDK", "startDate": "2016-07-02T00:25:57.921Z", "endDate": "2016-07-16T00:25:00.000Z", "completeDate": "2016-07-18T03:18:29.729Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "389905", "author": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "body": "master: https://github.com/appcelerator/titanium_mobile_windows/pull/766", "updateAuthor": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-07-04T22:31:33.000+0000", "updated": "2016-07-04T22:31:33.000+0000" }, { "id": "395349", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "Verified using:\r\nOS: Microsoft Windows 10 Pro 10.0.14393\r\nAppc core: 6.0.0-38\r\nAppc NPM: 4.2.8-6\r\nTi SDK: 6.0.0.v20160904203840\r\nLumia 930: 10.0\r\nLumia 520: 8.1\r\n\r\nRight and bottom properties are now retained after animation has completed\r\n\r\nClosing ticket", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2016-09-05T17:10:40.000+0000", "updated": "2016-09-05T17:10:40.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }