{ "id": "153118", "key": "TIMOB-20044", "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": { "id": "3", "description": "The problem is a duplicate of an existing issue.", "name": "Duplicate" }, "resolutiondate": "2021-05-21T21:28:29.000+0000", "created": "2015-11-16T10:31:02.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "animations", "engTriage", "ios" ], "versions": [ { "id": "17049", "name": "titanium 5.0.5", "archived": false, "released": true, "releaseDate": "2015-10-06" } ], "issuelinks": [ { "id": "59267", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "outwardIssue": { "id": "173743", "key": "TIMOB-27236", "fields": { "summary": "iOS: Animating view width/height from 0 doesn't work", "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": "Low", "id": "4" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": null, "updated": "2021-05-21T21:28:33.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": "Trying to apply simple animation to a view in order to modify its size (open/close effect), the animation could not be appliedon iOS devices when the view's width is zero. The same example is working perfectly on Android.\r\n\r\nHow to reproduce on a simple example:\r\n\r\nindex.xml\r\n{code:xml}\r\n\r\n\t\r\n\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\r\n\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\r\n\t\t\r\n\t\r\n\r\n{code}\r\n\r\nindex.js\r\n\r\n{code:java}\r\nfunction open(e) {\r\n var anim = Ti.UI.createAnimation({\r\n\t\twidth : \"50%\",\r\n\t\tduration : 2000,\r\n\t\tcurve : Ti.UI.ANIMATION_CURVE_EASE_IN_OUT\r\n\t});\r\n\t$.left.animate(anim);\r\n}\r\nfunction close(e) {\r\n var anim = Ti.UI.createAnimation({\r\n\t\twidth : \"0%\",\r\n\t\tduration : 2000,\r\n\t\tcurve : Ti.UI.ANIMATION_CURVE_EASE_IN_OUT\r\n\t});\r\n\t$.left.animate(anim);\r\n}\r\n\r\n$.index.open();\r\n{code}\r\n\r\nwhen the width is set to 1% in the close animation, the open animation is working properly but when set to 0% it's impossible to reopen the view.", "attachment": [], "flagged": false, "summary": "Cannot apply simple animations to views having zero width on iOS", "creator": { "name": "selim.ghdiri@gmail.com", "key": "selim.ghdiri@gmail.com", "displayName": "Selim Ghdiri", "active": true, "timeZone": "Africa/Tunis" }, "subtasks": [], "reporter": { "name": "selim.ghdiri@gmail.com", "key": "selim.ghdiri@gmail.com", "displayName": "Selim Ghdiri", "active": true, "timeZone": "Africa/Tunis" }, "environment": "Titanium SDK 3.5.0GA\r\nAlloy 1.5.1\r\niPhone Simulator (iOS SDK 8.1)\r\n", "closedSprints": [ { "id": 1224, "state": "closed", "name": "2021 Sprint 10", "startDate": "2021-05-17T16:31:32.484Z", "endDate": "2021-05-28T16:31:00.000Z", "completeDate": "2021-05-28T22:15:02.543Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "452078", "author": { "name": "ahutton", "key": "ahutton", "displayName": "Alan Hutton", "active": true, "timeZone": "America/Los_Angeles" }, "updateAuthor": { "name": "ahutton", "key": "ahutton", "displayName": "Alan Hutton", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-10-15T20:05:39.000+0000", "updated": "2019-10-15T20:05:39.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }