mirror of
https://github.com/finos/SymphonyElectron.git
synced 2024-12-29 02:11:28 -06:00
SDA-3596 - set the bounds for newly created child window (#1359)
This commit is contained in:
parent
28d4d9680d
commit
f65421dbe1
@ -270,8 +270,16 @@ export const handleChildWindow = (webContents: WebContents): void => {
|
|||||||
]);
|
]);
|
||||||
browserWin.setFullScreenable(true);
|
browserWin.setFullScreenable(true);
|
||||||
browserWin.origin = contextOriginUrl || windowHandler.url;
|
browserWin.origin = contextOriginUrl || windowHandler.url;
|
||||||
if (isWindowsOS && browserWin && !browserWin.isDestroyed()) {
|
if (browserWin && !browserWin.isDestroyed()) {
|
||||||
browserWin.setMenuBarVisibility(false);
|
browserWin.setBounds({
|
||||||
|
x: newWinOptions.x,
|
||||||
|
y: newWinOptions.y,
|
||||||
|
width: newWinOptions.width,
|
||||||
|
height: newWinOptions.height,
|
||||||
|
});
|
||||||
|
if (isWindowsOS) {
|
||||||
|
browserWin.setMenuBarVisibility(false);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user