{ "id": "108064", "key": "TIMOB-12327", "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": "14162", "description": "Release 3.1.0", "name": "Release 3.1.0", "archived": true, "released": true, "releaseDate": "2013-04-16" }, { "id": "15104", "description": "2013 Sprint 03 API", "name": "2013 Sprint 03 API", "archived": true, "released": true, "releaseDate": "2013-02-11" }, { "id": "14813", "description": "2013 Sprint 03", "name": "2013 Sprint 03", "archived": true, "released": true, "releaseDate": "2013-02-11" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2013-02-04T21:40:20.000+0000", "created": "2013-01-17T16:33:50.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "SupportTeam", "module_animation", "qe-testadded" ], "versions": [ { "id": "13505", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": true, "released": true, "releaseDate": "2012-12-14" }, { "id": "14162", "description": "Release 3.1.0", "name": "Release 3.1.0", "archived": true, "released": true, "releaseDate": "2013-04-16" } ], "issuelinks": [], "assignee": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2014-06-19T12:44:28.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": "h6.Issue\r\niOS: Window close method does not play nice with [property transition|http://docs.appcelerator.com/titanium/latest/#!/api/Titanium.UI.Animation-property-transition] (using animation style constants).\r\n\r\nh6.Tested on\r\niOS 6 simulator & iPhone 4 w/ 6.0.1\r\n\r\nh6.Steps to reproduce\r\n1. Run sample\r\n2. Press \"Click me to open\"\r\n3. Press \"Click me to close\"\r\n4. First UI item flickers\r\n5. Repeat steps 2 and 3. Both UI items flickers now.\r\n\r\nh6.Stripped down version\r\n{code}\r\nvar win1 = Titanium.UI.createWindow({\r\n\ttitle : 'Window 1',\r\n\tbackgroundColor : 'red',\r\n\tlayout : 'vertical',\r\n\tmodal : false\r\n});\r\n\r\nvar label1 = Titanium.UI.createLabel({\r\n\ttop : 25,\r\n\tcolor : '#000',\r\n\ttext : 'Click me to open',\r\n\tfont : {\r\n\t\tfontSize : 20,\r\n\t\tfontFamily : 'Helvetica Neue'\r\n\t},\r\n\ttextAlign : 'center',\r\n\twidth : 'auto',\r\n\theight : 25\r\n});\r\n\r\nwin1.add(label1);\r\n\r\nvar view1 = Titanium.UI.createView({\r\n\ttop : 25,\r\n\tbackgroundColor : 'green',\r\n\twidth : 'auto',\r\n\theight : Ti.UI.SIZE\r\n});\r\n\r\nwin1.add(view1);\r\n\r\nvar view2 = Titanium.UI.createView({\r\n\ttop : 25,\r\n\tbackgroundColor : 'blue',\r\n\twidth : 'auto',\r\n\theight : Ti.UI.SIZE\r\n});\r\n\r\nview2.add(Titanium.UI.createLabel({\r\n\ttop : 25,\r\n\tcolor : '#000',\r\n\ttext : 'Im other Label in a View',\r\n\tfont : {\r\n\t\tfontSize : 20,\r\n\t\tfontFamily : 'Helvetica Neue'\r\n\t},\r\n\ttextAlign : 'center',\r\n\twidth : 'auto'\r\n}));\r\n\r\nwin1.add(view2);\r\n\r\nvar win2 = Titanium.UI.createWindow({\r\n\ttitle : 'Window 1',\r\n\tbackgroundColor : '#000',\r\n\tmodal : false\r\n});\r\n\r\nvar label2 = Titanium.UI.createLabel({\r\n\tcolor : '#fff',\r\n\ttext : 'Click me to close',\r\n\tfont : {\r\n\t\tfontSize : 20,\r\n\t\tfontFamily : 'Helvetica Neue'\r\n\t},\r\n\ttextAlign : 'center',\r\n\twidth : 'auto',\r\n});\r\n\r\nwin2.add(label2);\r\n\r\nlabel1.addEventListener('click', function(e) {\r\n\twin2.open({\r\n\t\ttransition : Titanium.UI.iPhone.AnimationStyle.CURL_UP\r\n\t});\r\n});\r\n\r\nlabel2.addEventListener('click', function(e) {\r\n\r\n\twin2.close({\r\n\t\ttransition : Titanium.UI.iPhone.AnimationStyle.CURL_DOWN\r\n //\t\ttransition : Titanium.UI.iPhone.AnimationStyle.FLIP_FROM_LEFT\r\n\t});\r\n});\r\n\r\nwin1.open(); \r\n{code}", "attachment": [], "flagged": false, "summary": "iOS: Window close method does not play nice with animation style constants", "creator": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "environment": "Titanium 3.x & 3.1 on (3.1.0.v20130114171802.f7ebd4f)\r\niOS 6", "comment": { "comments": [ { "id": "234988", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "PR https://github.com/appcelerator/titanium_mobile/pull/3739", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-01-18T16:25:28.000+0000", "updated": "2013-01-18T16:25:28.000+0000" }, { "id": "237110", "author": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Functional Testing", "updateAuthor": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-02-04T21:40:20.000+0000", "updated": "2013-02-04T21:40:20.000+0000" }, { "id": "239619", "author": { "name": "pmishra", "key": "pmishra", "displayName": "Paras Mishra", "active": true, "timeZone": "Asia/Kolkata" }, "body": "Window is getting closed fine with animation.\r\n\r\nVerified on :\r\nDevice : ipad3 , iOS : 6\r\nSDK version: 3.1.0.v20130223030327\r\nCLI version : 3.0.24\r\nOS : MAC OSX 10.7.5\r\nXCode : 4.5.1\r\n", "updateAuthor": { "name": "pmishra", "key": "pmishra", "displayName": "Paras Mishra", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2013-02-25T08:59:24.000+0000", "updated": "2013-02-25T08:59:24.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }