{ "id": "140860", "key": "AC-1244", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "2", "description": "The problem described is an issue which will never be fixed.", "name": "Won't Fix" }, "resolutiondate": "2015-07-03T23:58:54.000+0000", "created": "2014-12-03T12:17:19.000+0000", "labels": [ "TCSupportTriage", "forced", "ios", "orientation" ], "versions": [], "issuelinks": [ { "id": "48624", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "141537", "key": "TIMOB-18195", "fields": { "summary": "iOS: Navbar appears to shrink when returning from a window with forced orientation", "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": "Medium", "id": "3" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "rtlechuga", "key": "rtlechuga", "displayName": "Radamantis Torres-Lechuga", "active": false, "timeZone": "Asia/Dubai" }, "updated": "2016-03-08T07:37:37.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": "14548", "name": "Titanium SDK & CLI", "description": "Please enter tickets related to the MobileSDK here." } ], "description": "{code}\r\nvar win = Ti.UI.createWindow({\r\n\torientationModes:\t[Ti.UI.PORTRAIT, Ti.UI.UPSIDE_PORTRAIT]\r\n});\r\n\r\nvar navWin = Ti.UI.iOS.createNavigationWindow({window: win});\r\n\r\nvar button = Ti.UI.createButton({\r\n\twidth:\t200,\r\n\theight:\t50,\r\n\ttitle:\t\"Open Window 2\"\r\n});\r\nbutton.addEventListener(\"click\", function() {\r\n\tvar win2 = Ti.UI.createWindow({\r\n\t\torientationModes:\t[Ti.UI.PORTRAIT, Ti.UI.UPSIDE_PORTRAIT, Ti.UI.LANDSCAPE_LEFT, Ti.UI.LANDSCAPE_RIGHT]\r\n\t});\r\n\tnavWin.openWindow(win2);\r\n});\r\nwin.add(button);\r\n\r\nwin.open();\r\n{code}\r\n\r\nFirst of all this problem only shows on a real device.\r\n\r\nStart the app in Portrait mode, click the \"Open Window 2\"-button and place the phone i Landscape mode, press the navigation window back button to return to the first window, this should force the app to be rotated back into Portrait mode according to forced orientation and by just looking at the window it looks correct but if you now place your phone back into Portrait mode the window will rotate once more back into Portrait mode giving a weird effect.", "attachment": [], "flagged": false, "summary": "iOS forced orientation doesn't rotate screen properly", "creator": { "name": "jonasthoor", "key": "jonasthoor", "displayName": "Jonas Thoor", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "jonasthoor", "key": "jonasthoor", "displayName": "Jonas Thoor", "active": true, "timeZone": "Europe/Berlin" }, "environment": "Titanium SDK version 3.4.0.GA\r\nBuilding for target: iPhone 5, iOS: 8.1.1\r\nBuilding using iOS SDK: 8.1\r\n", "comment": { "comments": [ { "id": "356917", "author": { "name": "rtlechuga", "key": "rtlechuga", "displayName": "Radamantis Torres-Lechuga", "active": false, "timeZone": "Asia/Dubai" }, "body": "Refer to [orientationModes|http://docs.appcelerator.com/titanium/latest/#!/api/Titanium.UI.Window-property-orientationModes]\r\n\r\n*Forcing the orientation of windows inside a NavigationWindow is a bad practice*\r\n\r\n*OrientationModes must be set before opening the window.*\r\n", "updateAuthor": { "name": "rtlechuga", "key": "rtlechuga", "displayName": "Radamantis Torres-Lechuga", "active": false, "timeZone": "Asia/Dubai" }, "created": "2015-07-03T23:58:54.000+0000", "updated": "2015-07-03T23:58:54.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }