{ "id": "142196", "key": "TIMOB-18299", "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": [], "resolution": null, "resolutiondate": null, "created": "2015-01-02T05:23:35.000+0000", "priority": { "name": "None", "id": "6" }, "labels": [ "engTriage", "qe-3.5.0" ], "versions": [ { "id": "16704", "description": "Release 3.5.0", "name": "Release 3.5.0", "archived": false, "released": true, "releaseDate": "2015-01-13" } ], "issuelinks": [], "assignee": null, "updated": "2019-12-11T21:46:50.000+0000", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "components": [ { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "This is not a regression as it is reproducible with titanium sdk 3.4.1\r\n\r\nVisible property of a view, when set to false under animation, is not working as expected. \r\n\r\nSteps to reproduce:\r\n1. include the following code in app.js and run\r\n{code}\r\n var _window = Ti.UI.createWindow({\r\n backgroundColor: '#fff'\r\n });\r\n \r\n var view1 = Ti.UI.createView({\r\n backgroundColor: 'green',\r\n top: 10,\r\n opacity: '1',\r\n width: 100,\r\n height: 100\r\n });\r\n var label1 = Ti.UI.createLabel({\r\n top: 60,\r\n text: 'Background text'\r\n });\r\n var view2 = Ti.UI.createView({\r\n backgroundColor: 'green',\r\n top: 120,\r\n width: 100,\r\n height: 100,\r\n visible: true\r\n });\r\n var label2 = Ti.UI.createLabel({\r\n top: 170,\r\n text: 'Background text'\r\n });\r\n\r\n\r\n view1.addEventListener('click', function() {\r\n view1.animate({\r\n autoreverse: true,\r\n duration: 2000,\r\n repeat: 2,\r\n backgroundColor: 'blue',\r\n opacity: '0.1',\r\n });\r\n });\r\n view2.addEventListener('click', function() {\r\n view2.animate({\r\n autoreverse: true,\r\n duration: 3000,\r\n repeat: 2,\r\n backgroundColor: 'red',\r\n visible: false\r\n });\r\n });\r\n\r\n _window.add(label1);\r\n _window.add(view1);\r\n _window.add(label2);\r\n _window.add(view2);\r\n _window.open();\r\n{code}\r\n2. Click on view2 (bottom green square)\r\n3. Comment \"backgroundColor: 'red',\" in view2 and repeat step 2.\r\nActual Results:\r\n1. The green square disappears and after some time it appears back again with the color slowly changing from red to green.\r\n2. Nothing happens\r\n\r\nExpected Results:\r\n1. Since the animation process involves changing the view's visibility to false and with autoreverse true the visibility should be changed back to true. This process should happen twice as the repeat count is set to 2. Hence, when the background color changes from red to green during the first time, it should be seen and not just during the end of the second time as observed in the actual results. \r\n\r\n2. The view should become invisible and should appear back again as autoreverse is set to true.", "attachment": [], "flagged": false, "summary": "iOS: animation does not work as expected when the visibility is set to false", "creator": { "name": "vchidambaram", "key": "vchidambaram", "displayName": "Visalakshi Chidambaram", "active": true, "timeZone": "Asia/Shanghai" }, "subtasks": [], "reporter": { "name": "vchidambaram", "key": "vchidambaram", "displayName": "Visalakshi Chidambaram", "active": true, "timeZone": "Asia/Shanghai" }, "environment": "Titanium SDK: 3.5.0.v20141222103320\r\nAppc-Studio: 3.4.1.201410281743\r\nTitanium CLI: 3.4.1\r\nAlloy : 1.5.1 GA \r\nXcode : 6.1 \r\nOS: OSX 10.10.1 \r\nDevice : iPad Air 2 (iOS 8.1)", "comment": { "comments": [], "maxResults": 0, "total": 0, "startAt": 0 } } }