Merge pull request #1004 from johankwarnmarksymphony/sda-1971

fix: sda-1971 make the pop-out full screen enable
This commit is contained in:
Johan Kwarnmark 2020-05-27 10:22:44 +02:00 committed by GitHub
commit 7ba9a3a820
2 changed files with 2 additions and 0 deletions

View File

@ -15,6 +15,7 @@ const getMainWindow = {
isAlwaysOnTop: jest.fn(() => true),
setMenuBarVisibility: jest.fn(),
setAlwaysOnTop: jest.fn(),
setFullScreenable: jest.fn(),
};
jest.mock('../src/common/env', () => {

View File

@ -159,6 +159,7 @@ export const handleChildWindow = (webContents: WebContents): void => {
// Event needed to hide native menu bar
childWebContents.once('did-start-loading', () => {
const browserWin = BrowserWindow.fromWebContents(childWebContents) as ICustomBrowserWindow;
browserWin.setFullScreenable(true);
browserWin.origin = windowHandler.url;
if (isWindowsOS && browserWin && !browserWin.isDestroyed()) {
browserWin.setMenuBarVisibility(false);