{ "id": "139959", "key": "TIMOB-18056", "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": "2", "description": "The problem described is an issue which will never be fixed.", "name": "Won't Fix" }, "resolutiondate": "2015-01-22T18:49:11.000+0000", "created": "2014-11-18T15:34:25.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "forced", "ios", "orientation", "statusbar" ], "versions": [], "issuelinks": [ { "id": "48622", "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": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2015-08-12T14:15: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": "{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 New Window\"\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);\t\t\r\n\r\nnavWin.open();\r\n{code}\r\n\r\nOpening win2 by clicking the button, after opening the window change the orientation of the simulator to either landscape then press the navigation windows back button, now the all the sudden the StatusBar is gone from the application, rotating the simulator back to portrait will bring it back but shouldn't it appear as soon as the forced orientation change is made?", "attachment": [], "flagged": false, "summary": "iOS: StatusBar disappears on forced orientation change ", "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: Simulator \r\nBuilding using iOS SDK: 8.1\r\nBuilding for iOS Simulator: iPhone 5s", "closedSprints": [ { "id": 126, "state": "closed", "name": "2018 Sprint 05 SDK", "startDate": "2018-02-25T19:38:08.926Z", "endDate": "2018-03-11T18:38:00.000Z", "completeDate": "2018-03-11T22:06:01.520Z", "originBoardId": 100 } ], "comment": { "comments": [ { "id": "332851", "author": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "body": "Problem can be reproduced on IOS 8.1 and SDK 3.4.0.", "updateAuthor": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "created": "2014-11-19T03:34:39.000+0000", "updated": "2014-11-19T03:34:39.000+0000" }, { "id": "340208", "author": { "name": "sfeather", "key": "sfeather", "displayName": "Stephen Feather", "active": true, "timeZone": "America/New_York" }, "body": "I can confirm:\r\nTi.UI.Window as main container: https://gist.github.com/sfeather/0c480fde2bbde3f27a22\r\nTi.UI.iOS.NavigationWindow as main container: https://gist.github.com/sfeather/dfe3c329887ae1f903db\r\nTi.UI.TabGroup as main container: https://gist.github.com/sfeather/7b867201ef648a9d9e21\r\ndk.napp.drawer as main container.\r\n\r\nThe key seems to be that if the orientation of the device changes while the child is open, then the main container refresh breaks.\r\n\r\nhttp://content.screencast.com/users/Stephen_Feather/folders/Jing/media/5d152d89-5471-4fdf-a3e4-1dc983bd9b30/00000825.png\r\n\r\n\r\nLast known working SDK would have been around 3.2.3 (this is based solely upon commits and delivery of an app that had similar functionality)\r\n\r\nTested with 3.4.1.GA, 3.5.0.GA, 3.6.0.v20150120195731.\r\n*This prevents the shipping of two apps.*\r\n\r\n{code}\r\nOperating System\r\n Name = Mac OS X\r\n Version = 10.10.1\r\n Architecture = 64bit\r\n # CPUs = 4\r\n Memory = 24.0GB\r\n\r\nNode.js\r\n Node.js Version = 0.10.29\r\n npm Version = 1.4.14\r\n\r\nTitanium CLI\r\n CLI Version = 3.4.1\r\n node-appc Version = 0.2.14\r\n\r\nJava Development Kit\r\n Version = 1.6.0_65\r\n Java Home = /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home\r\n\r\nXcode\r\n 6.1.1 (build 6A2008a) - Xcode default\r\n Install Location = /Applications/Xcode.app/Contents/Developer\r\n iOS SDKs = 8.1\r\n iOS Simulators = 8.1\r\n Supported by TiSDK 3.5.0.GA = yes\r\n\r\nConnected iOS Devices\r\n Feather Direct's iPhone 6+\r\n UDID = 09d1cc7a500c7298dfb3f9babcd5a0ae2254982b\r\n Type = iPhone (#3b3b3c)\r\n iOS Version = 8.1.2\r\n CPU Architecture = arm64\r\n{code}", "updateAuthor": { "name": "sfeather", "key": "sfeather", "displayName": "Stephen Feather", "active": true, "timeZone": "America/New_York" }, "created": "2015-01-22T02:50:04.000+0000", "updated": "2015-01-22T03:17:59.000+0000" }, { "id": "340214", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I do know that Apple deprecated the usage of forced orientation modes, leading us to deprecate similar usages in 3.4.0:\r\n\r\nhttp://docs.appcelerator.com/titanium/release-notes/?version=3.4.0.GA#deprecated_ios\r\n\r\n[~jalter], [~vduggal], thoughts?", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-01-22T05:14:05.000+0000", "updated": "2015-01-22T05:14:05.000+0000" }, { "id": "340270", "author": { "name": "jalter", "key": "jalter", "displayName": "Jon Alter", "active": true, "timeZone": "America/Los_Angeles" }, "body": "This behavior is intentional.\r\nIt is bad UI design to force orientations and we will be dropping support for forcing orientations in a future release.\r\n\r\nIf you really want to do this, use modal windows.", "updateAuthor": { "name": "jalter", "key": "jalter", "displayName": "Jon Alter", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-01-22T18:49:11.000+0000", "updated": "2015-01-22T18:49:11.000+0000" }, { "id": "340276", "author": { "name": "jalter", "key": "jalter", "displayName": "Jon Alter", "active": true, "timeZone": "America/Los_Angeles" }, "body": "h6. Example\r\n{code}\r\nvar win = Ti.UI.createWindow({\r\n\torientationModes: [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 New Window\"\r\n});\r\nbutton.addEventListener(\"click\", function() {\r\n\tvar win2 = Ti.UI.createWindow({\r\n\t\torientationModes: [Ti.UI.PORTRAIT, Ti.UI.UPSIDE_PORTRAIT, Ti.UI.LANDSCAPE_LEFT, Ti.UI.LANDSCAPE_RIGHT],\r\n\t\tmodal: true,\r\n\t\tbackgroundColor: 'blue'\r\n\t});\r\n\tvar button2 = Ti.UI.createButton({\r\n\t\twidth:\t200,\r\n\t\theight:\t50,\r\n\t\ttitle:\t\"Close Window\"\r\n\t});\r\n\tbutton2.addEventListener('click', function() {\r\n\t\twin2.close();\r\n\t});\r\n\twin2.add(button2);\r\n\twin2.open();\r\n});\r\nwin.add(button);\t\t\r\n \r\nnavWin.open();\r\n{code}", "updateAuthor": { "name": "jalter", "key": "jalter", "displayName": "Jon Alter", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-01-22T18:56:27.000+0000", "updated": "2015-01-22T18:56:27.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }