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,9 +270,17 @@ export const handleChildWindow = (webContents: WebContents): void => {
|
||||
]);
|
||||
browserWin.setFullScreenable(true);
|
||||
browserWin.origin = contextOriginUrl || windowHandler.url;
|
||||
if (isWindowsOS && browserWin && !browserWin.isDestroyed()) {
|
||||
if (browserWin && !browserWin.isDestroyed()) {
|
||||
browserWin.setBounds({
|
||||
x: newWinOptions.x,
|
||||
y: newWinOptions.y,
|
||||
width: newWinOptions.width,
|
||||
height: newWinOptions.height,
|
||||
});
|
||||
if (isWindowsOS) {
|
||||
browserWin.setMenuBarVisibility(false);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
childWebContents.once('did-finish-load', async () => {
|
||||
|
Loading…
Reference in New Issue
Block a user