mirror of
https://github.com/finos/SymphonyElectron.git
synced 2024-12-28 09:51:06 -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.origin = contextOriginUrl || windowHandler.url;
|
||||
if (isWindowsOS && browserWin && !browserWin.isDestroyed()) {
|
||||
browserWin.setMenuBarVisibility(false);
|
||||
if (browserWin && !browserWin.isDestroyed()) {
|
||||
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