{ "id": "161846", "key": "TIMOB-23653", "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-20T04:57:03.000+0000", "created": "2016-07-19T14:55:20.000+0000", "priority": { "name": "None", "id": "6" }, "labels": [ "qe-5.4.0", "regression" ], "versions": [ { "id": "17706", "name": "Release 5.4.0", "archived": false, "released": true, "releaseDate": "2016-08-11" }, { "id": "17707", "name": "Release 5.3.0", "archived": false, "released": true, "releaseDate": "2016-06-04" } ], "issuelinks": [], "assignee": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2016-09-05T15:25:12.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 using the code below, when the animation is complete the opacity property will be what it was set to before the animation started.\r\n\r\n{code}\r\nvar win = Ti.UI.createWindow({backgroundColor: 'red'}),\r\n img = Ti.UI.createImageView({width: '80%', height: '80%', image:'Logo.png', opacity:0.5});\r\n \r\nvar anim = Ti.UI.createAnimation({\r\n\topacity:1,\r\n\tduration:1000\r\n});\r\n\r\nwin.addEventListener('click', function(){\r\n\timg.animate(anim);\r\n});\r\n\r\nwin.add(img);\r\nwin.open();\r\n{code}\r\n\r\n*This a regression that first appears in 5.3.0.GA,*\r\n\r\n*Workaround*\r\n\r\nAs a workaround add an eventListener for the complete event and then set the property as required like below\r\n\r\n{code}\r\nanim.addEventListener('complete', function(){\r\n\timg.opacity = 1;\r\n});\r\n \r\n{code}\r\n\r\n\r\nh5.Steps to reproduce\r\n\r\n# Using the code above, build for Windows Platform {{appc run -p windows -T wp-emulator -C 10-0-1}}\r\n# Click the screen\r\n\r\n\r\nh5.Actual result\r\n\r\nAt the end of the animation the opacity of the image will return to the original value\r\n\r\n\r\nh5.Expected\r\n\r\nThe value at the end of the animation should be what is defined in the animation", "attachment": [], "flagged": false, "summary": "Windows: Animation returns to original opacity property when finished", "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\nAppc CLI Core: 5.4.0-33\r\nAppc CLI NPM: 4.2.7\r\nTi SDK: 5.3.0.GA, 5.4.0.v20160713141635\r\nAppc Studio: 4.7.0.201607130543", "closedSprints": [ { "id": 682, "state": "closed", "name": "2016 Sprint 15 SDK", "startDate": "2016-07-16T00:19:20.819Z", "endDate": "2016-07-30T00:19:00.000Z", "completeDate": "2016-08-01T04:40:11.421Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "391044", "author": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "body": "master: https://github.com/appcelerator/titanium_mobile_windows/pull/782", "updateAuthor": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-07-19T21:18:59.000+0000", "updated": "2016-07-19T21:18:59.000+0000" }, { "id": "395339", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "Verified using:\r\n\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\n\r\nOpacity value is now retained at the end of the animation\r\n\r\nClosing ticket", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2016-09-05T15:25:06.000+0000", "updated": "2016-09-05T15:25:06.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }