mirror of
https://github.com/finos/SymphonyElectron.git
synced 2024-11-22 00:47:29 -06:00
Merge pull request #1004 from johankwarnmarksymphony/sda-1971
fix: sda-1971 make the pop-out full screen enable
This commit is contained in:
commit
7ba9a3a820
@ -15,6 +15,7 @@ const getMainWindow = {
|
||||
isAlwaysOnTop: jest.fn(() => true),
|
||||
setMenuBarVisibility: jest.fn(),
|
||||
setAlwaysOnTop: jest.fn(),
|
||||
setFullScreenable: jest.fn(),
|
||||
};
|
||||
|
||||
jest.mock('../src/common/env', () => {
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user