{ "id": "131576", "key": "AC-825", "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": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2014-07-14T22:34:47.000+0000", "created": "2014-06-11T03:06:30.000+0000", "labels": [ "OptionDialog", "fullscreen", "ios", "navbar", "navigationWindow", "statusbar" ], "versions": [], "issuelinks": [], "assignee": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "updated": "2016-03-08T07:37:06.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": "Problem:\r\n\r\nUsing an OptionDialog inside a full-screen, modal navigation window enables (shows) the status bar.\r\n\r\nExpected: \r\n\r\nUse of an OptionsDialog should have no effect on the full-screen status of a window, and should not unhide the status bar when loaded.\r\n\r\nTest case:\r\n\r\nLoad the code below. Tap \"Open Full-Screen Modal\" to load a modal navigation window. Notice the status bar is not shown (which is correct). \r\n\r\nTap \"Open Details Window\" to go to a sub-navigation window. The status bar is still hidden as intended.\r\n\r\nNow Tap \"Open Options\" and as soon as the options dialog shows, the status bar appears. The navigation bar is now \"under\" the status bar. \r\n\r\nTap \"Cancel\" and then tap \"< WIN 2\" to go back to the previous window. The status bar still shows, and the misalignment of the window and navigation bar is present by the black background color showing through.\r\n\r\napp.js\r\n{code}\r\nvar win1 = Ti.UI.createWindow({\r\n\ttitle: 'WIN 1',\r\n\tbackgroundColor: '#ffffff'\r\n});\r\n\r\n\r\nvar win2 = Ti.UI.createWindow({\r\n\ttitle: 'WIN 2',\r\n\tfullscreen: true,\r\n\tbackgroundColor: '#f2f2f2'\r\n});\r\n\r\n\r\nvar win3 = Ti.UI.createWindow({\r\n\ttitle: 'WIN 3',\r\n\tbackgroundColor: '#cdcdcd'\r\n});\r\n\r\n\r\nvar nav = Ti.UI.iOS.createNavigationWindow({\r\n\twindow: win2\r\n});\r\n\r\n\r\nvar openModal = Ti.UI.createButton({\r\n\ttitle: 'Open Full-Screen Modal'\r\n});\r\n\r\n\r\nopenModal.addEventListener('click', function(e) {\r\n\tnav.open({ \r\n\t\t modal: true\r\n\t\t,modalTransitionStyle: Ti.UI.iPhone.MODAL_TRANSITION_STYLE_FLIP_HORIZONTAL \r\n\t\t,modalStyle: Ti.UI.iPhone.MODAL_PRESENTATION_FULLSCREEN\r\n\t\t,fullscreen: true\r\n\t});\r\n});\r\n\r\n\r\nwin1.add(openModal);\r\n\r\n\r\nvar openDet = Ti.UI.createButton({\r\n\ttitle: 'Open Details Window'\r\n});\r\n\r\n\r\nopenDet.addEventListener('click', function(e) {\r\n\tnav.openWindow(win3);\r\n});\r\n\r\nvar lbl = Ti.UI.createLabel({\r\n\ttop: 100,\r\n\ttext: 'Notice StatusBar still shows and there is an alignment issue with the nav bar.',\r\n\tvisible: false\r\n});\r\n\r\nwin2.add(lbl);\r\nwin2.add(openDet);\r\n\r\n\r\nvar action = Ti.UI.createButton({\r\n\ttitle: 'Open Options (Notice StatusBar Appears Above)',\r\n\tfont: {fontSize: 14}\r\n});\r\n\r\n\r\naction.addEventListener('click', function(e) {\r\n\tlbl.visible = true;\r\n\tTi.UI.createOptionDialog({\r\n\t\toptions: [ 'Hit Cancel and', 'go back to WIN 2', 'CANCEL' ],\r\n\t\tcancel: 2\r\n\t}).show();\r\n});\r\n\r\n\r\nwin3.add(action);\r\n\r\nwin1.open();\r\n{code}", "attachment": [], "flagged": false, "summary": "iOS: OptionDialog unhides the StatusBar in Full-screen Modal NavigationWindow...", "creator": { "name": "bcproductions", "key": "bcproductions", "displayName": "Ed", "active": true, "timeZone": "America/Havana" }, "subtasks": [], "reporter": { "name": "bcproductions", "key": "bcproductions", "displayName": "Ed", "active": true, "timeZone": "America/Havana" }, "environment": "Ti SDK 3.2.3, iOS 7.1, Simulator 7.1", "comment": { "comments": [ { "id": "308435", "author": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "body": "Hi,\r\n\r\nThank you for your case.\r\n\r\nYour OptionDialog is created on win 3, if you want keep the window full-screen, you have to set win 3 as full screen, because the default OptionDialog setting for IOS will show the status if you don't set win 3 as full screen. \r\n\r\nRegard,\r\nShuo ", "updateAuthor": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "created": "2014-06-11T09:53:17.000+0000", "updated": "2014-06-11T09:53:17.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }