{ "id": "100515", "key": "TIMOB-10785", "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": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2017-06-21T21:06:07.000+0000", "created": "2012-09-05T15:16:34.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "core" ], "versions": [ { "id": "14096", "description": "Release 2.1.2", "name": "Release 2.1.2", "archived": true, "released": true, "releaseDate": "2012-08-31" } ], "issuelinks": [], "assignee": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-06-21T21:06:07.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": "Steps to Reproduce:\r\n1. Adjust open window parameters\r\n2. Run the code.\r\n3. Click the 'Open' button to see the transition (or not).\r\n\r\nExpected Results:\r\nIf animated=true, you should see the transition effect. Also, if fullscreen=true, shouldn't that override the dimension settings?\r\n\r\nActual Results: \r\nVaries depending on the settings. See table.\r\n\r\n|| || modal==true || fullscreen==true || modal==false or undefined && \\\\ fullscreen==false or undefined ||\r\n| animated is undefined | default transition or modalTransitionStyle | no effect unless `transition` is set | no effect unless `transition` is set |\r\n| animated==true | default or modalTransitionStyle | no transition | no transition | \r\n| animated==false | no transition | no effect unless `transition` is set | no effect unless `transition` is set |\r\n| animated==true && dimensions are defined | N/A | uses dimensions | uses dimensions |\r\n| animated==false && dimensions are defined | N/A | Uses `transition` setting. If not set, uses the dimensions | Uses `transition` setting. If not set, uses the dimensions. |\r\n\r\ndimensions = `top`, `bottom`, `left`, and/or `right`\r\n\r\n{code:javascript}\r\nvar win1 = Ti.UI.createWindow({\r\n width: '100%',\r\n height: '100%',\r\n backgroundColor: 'white'\r\n});\r\nvar btn1 = Ti.UI.createButton({\r\n top: 0,\r\n left: 0,\r\n width: 100,\r\n height: 50,\r\n title: 'open'\r\n});\r\nbtn1.addEventListener('click', openWindow);\r\nwin1.add(btn1);\r\nwin1.open();\r\n \r\nfunction openWindow() {\r\n var win2 = Ti.UI.createWindow({\r\n backgroundColor: 'red',\r\n \t\torientation: Ti.UI.LANDSCAPE_LEFT,\r\n });\r\n \r\n\tvar btn2 = Ti.UI.createButton({\r\n\t top: 0,\r\n\t left: 0,\r\n\t width: 100,\r\n\t height: 50,\r\n\t title: 'close'\r\n\t});\r\n\r\n\tbtn2.addEventListener('click', function(e){\r\n\t\twin2.close();\r\n\t});\r\n\twin2.add(btn2);\r\n\r\n win2.duration = 500;\r\n win2.open({\r\n \t/* Switch parameters on/off */\r\n \t//navBarHidden: true,\r\n \tanimated: true,\r\n \t//modal: true,\r\n \tfullscreen: true,\r\n \ttransition: Titanium.UI.iPhone.AnimationStyle.FLIP_FROM_RIGHT,\r\n \t\t//modalTransitionStyle: Titanium.UI.iPhone.MODAL_TRANSITION_STYLE_CROSS_DISSOLVE, \r\n \t\t//top:25,\r\n \t\t//left:25,\r\n \t\t//right:25,\r\n \t\t//bottom:25,\r\n });\r\n}\r\n{code}", "attachment": [], "flagged": false, "summary": "iOS: Inconsistent transition behavior using Titanium.UI.Window.open settings", "creator": { "name": "bhatfield", "key": "bhatfield", "displayName": "Benjamin Hatfield", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "bhatfield", "key": "bhatfield", "displayName": "Benjamin Hatfield", "active": false, "timeZone": "America/Los_Angeles" }, "environment": "Titanium Mobile v2.1.2.GA and 2.1.1.GA\r\nXcode v4.4\r\niPhone SDK v5.1", "comment": { "comments": [ { "id": "422507", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket due to the time passed and lack of progress for a number of years. Any problems, please file a new ticket.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-06-21T21:06:07.000+0000", "updated": "2017-06-21T21:06:07.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }