{ "id": "99306", "key": "TIMOB-10575", "fields": { "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "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-27T18:26:18.000+0000", "created": "2012-08-16T02:21:19.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "api", "dev-invalidate" ], "versions": [ { "id": "13505", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": true, "released": true, "releaseDate": "2012-12-14" } ], "issuelinks": [], "assignee": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-13T21:17:41.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": "It would be nice to have an option to make status bar hidden or not when opening \"fullscreen\" window. Currently, it automatically hides the status bar. Window can have \"hideStatusBar\" option to enable or disable this behaviour.\r\n\r\nFor example:\r\n\r\n{code}var win = Ti.UI.createWindow({\r\n fullscreen: true,\r\n hideStatusBar: false\r\n});{code}\r\n", "attachment": [], "flagged": false, "summary": "iOS: Disabling/enabling status bar hiding behaviour when fullscreen window opens", "creator": { "name": "hdogan", "key": "hdogan", "displayName": "Hidayet Dogan", "active": true, "timeZone": "Europe/Istanbul" }, "subtasks": [], "reporter": { "name": "hdogan", "key": "hdogan", "displayName": "Hidayet Dogan", "active": true, "timeZone": "Europe/Istanbul" }, "environment": "iOS", "comment": { "comments": [ { "id": "215985", "author": { "name": "hdogan", "key": "hdogan", "displayName": "Hidayet Dogan", "active": true, "timeZone": "Europe/Istanbul" }, "body": "Made a pull request for this feature. I will update ticket with functional test code soon.\r\n\r\nSee commit at: https://github.com/appcelerator/titanium_mobile/pull/2824", "updateAuthor": { "name": "hdogan", "key": "hdogan", "displayName": "Hidayet Dogan", "active": true, "timeZone": "Europe/Istanbul" }, "created": "2012-08-24T03:26:02.000+0000", "updated": "2012-08-24T03:26:02.000+0000" }, { "id": "215987", "author": { "name": "hdogan", "key": "hdogan", "displayName": "Hidayet Dogan", "active": true, "timeZone": "Europe/Istanbul" }, "body": "Here is the functional test code:\r\n\r\n{code}Titanium.UI.setBackgroundColor('#fff');\r\n\r\nvar win = Titanium.UI.createWindow({ \r\n title: 'Fullscreen Test',\r\n backgroundColor: '#fff',\r\n layout: 'vertical'\r\n});\r\n\r\nvar win_fullscreen = Titanium.UI.createWindow({\r\n\ttitle: 'Fullscreen Window',\r\n\tbackgroundColor: '#fff',\r\n\tfullscreen: true\r\n});\r\n\r\nvar label = Titanium.UI.createLabel({\r\n\ttop: 10,\r\n\ttext: 'Click window to close.'\r\n});\r\n\r\nwin_fullscreen.add(label);\r\n\r\nwin_fullscreen.addEventListener('click', function(e) {\r\n\twin_fullscreen.close();\r\n});\r\n\r\nvar button1 = Titanium.UI.createButton({\r\n\ttop: 10,\r\n\ttitle: 'Open Fullscreen Window Without StatusBar',\r\n\tstyle: Titanium.UI.iPhone.SystemButtonStyle.BORDERED\r\n});\r\n\r\nbutton1.addEventListener('click', function(e) {\r\n\twin_fullscreen.open({\r\n\t\t// statusBarHiddenInFullscreen: false (default is already false)\r\n\t});\r\n});\r\n\r\nwin.add(button1);\r\n\r\nvar button2 = Titanium.UI.createButton({\r\n\ttop: 10,\r\n\ttitle: 'Open Fullscreen Window With StatusBar',\r\n\tstyle: Titanium.UI.iPhone.SystemButtonStyle.BORDERED\r\n});\r\n\r\nbutton2.addEventListener('click', function(e) {\r\n\twin_fullscreen.open({\r\n\t\tstatusBarHiddenInFullscreen: true\r\n\t});\r\n});\r\n\r\nwin.add(button2);\r\n\r\nwin.open();{code}", "updateAuthor": { "name": "hdogan", "key": "hdogan", "displayName": "Hidayet Dogan", "active": true, "timeZone": "Europe/Istanbul" }, "created": "2012-08-24T04:33:27.000+0000", "updated": "2012-08-24T04:33:27.000+0000" }, { "id": "216733", "author": { "name": "hdogan", "key": "hdogan", "displayName": "Hidayet Dogan", "active": true, "timeZone": "Europe/Istanbul" }, "body": "Here is the example code how I use fullscreen windows for HUD views and how I don't want it to hide status bar.\r\n\r\n{code}Titanium.UI.setBackgroundColor('#fff');\r\n\r\nvar tabGroup = Titanium.UI.createTabGroup();\r\n\r\nvar win1 = Titanium.UI.createWindow({\r\n\ttitle: 'First Window',\r\n\tbackgroundColor: '#fff',\r\n\tlayout: 'vertical'\r\n});\r\n\r\nvar label = Titanium.UI.createLabel({\r\n\ttop: 10,\r\n\ttext: 'This is an example label...'\r\n});\r\n\r\nwin1.add(label);\r\n\r\nvar button = Titanium.UI.createButton({\r\n\ttop: 10,\r\n\ttitle: 'Open loading screen',\r\n\tstyle: Titanium.UI.iPhone.SystemButtonStyle.BORDERED\r\n});\r\n\r\nbutton.addEventListener('click', function(e) {\r\n\t/*\r\n\t * User sould not able to switch tabs or click navigation bar buttons\r\n\t * until job is finished.\r\n\t * \r\n\t * So I use fullscreen window to cover whole screen including tabGroup and navBar\r\n\t * to prevent use to switch tabs or click navigation bar buttons (ie, back button).\r\n\t * Default window or view could not cover tabGroup nor navBar.\r\n\t */\r\n\tvar hud_window = Titanium.UI.createWindow({\r\n\t\tfullscreen: true,\r\n\t\tbackgroundColor: 'transparent',\r\n\t\tlayout: 'vertical'\r\n\t});\r\n\t\r\n\tvar hud_view = Titanium.UI.createView({\r\n\t\ttop: 100,\r\n\t\twidth: 250,\r\n\t\theight: Ti.UI.SIZE,\r\n\t\tbackgroundColor: '#000',\r\n\t\tborderRadius: 6,\r\n\t\topacity: 0.75\r\n\t});\r\n\t\r\n\tvar hud_label = Titanium.UI.createLabel({\r\n\t\ttext: 'Loading...\\nYou have to wait 5 seconds to touch tabs or navigation bar.',\r\n\t\ttextAlign: 'center',\r\n\t\twidth: 250,\r\n\t\ttop: 10,\r\n\t\tcolor: '#fff'\r\n\t});\r\n\t\r\n\thud_view.add(hud_label);\r\n\thud_window.add(hud_view);\r\n\thud_window.open(); // Now it hides statusbar and UI goes up.\r\n\t\r\n\tsetTimeout(function() {\r\n\t\thud_window.close(); // Now it shows statusbar and UI goes down.\r\n\t}, 5000);\r\n});\r\n\r\nwin1.add(button);\r\n\r\nvar tab1 = Titanium.UI.createTab({\r\n\ttitle: 'First Tab',\r\n\ticon: 'KS_nav_ui.png',\r\n\twindow: win1\r\n});\r\n\r\nvar win2 = Titanium.UI.createWindow({\r\n\ttitle: 'Second Window',\r\n\tbacgroundColor: '#d00'\r\n});\r\n\r\nvar tab2 = Titanium.UI.createTab({\r\n\ttitle: 'Second Tab',\r\n\ticon: 'KS_nav_views.png',\r\n\twindow: win2\r\n});\r\n\r\ntabGroup.addTab(tab1);\r\ntabGroup.addTab(tab2);\r\ntabGroup.open();{code}", "updateAuthor": { "name": "hdogan", "key": "hdogan", "displayName": "Hidayet Dogan", "active": true, "timeZone": "Europe/Istanbul" }, "created": "2012-08-29T05:13:54.000+0000", "updated": "2012-08-29T05:13:54.000+0000" }, { "id": "411575", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as the issue will not fix.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-13T21:17:41.000+0000", "updated": "2017-03-13T21:17:41.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }