mirror of
https://github.com/finos/SymphonyElectron.git
synced 2024-12-29 02:11:28 -06:00
SDA-3652 App mispositioning bugfix (#1392)
This commit is contained in:
parent
f6d66b36cc
commit
882da2a42f
@ -215,6 +215,7 @@ export class WindowHandler {
|
|||||||
minHeight: 300,
|
minHeight: 300,
|
||||||
minWidth: 300,
|
minWidth: 300,
|
||||||
title: 'Symphony',
|
title: 'Symphony',
|
||||||
|
show: false,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
preload: path.join(__dirname, '../renderer/_preload-main.js'),
|
preload: path.join(__dirname, '../renderer/_preload-main.js'),
|
||||||
@ -375,15 +376,6 @@ export class WindowHandler {
|
|||||||
true,
|
true,
|
||||||
);
|
);
|
||||||
|
|
||||||
if (isMaximized || isMaximizedFlag) {
|
|
||||||
this.mainWindow.maximize();
|
|
||||||
logger.info(
|
|
||||||
`window-handler: window is maximized!`,
|
|
||||||
isMaximized,
|
|
||||||
isMaximizedFlag,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (isFullScreen) {
|
if (isFullScreen) {
|
||||||
logger.info(`window-handler: window is in full screen!`);
|
logger.info(`window-handler: window is in full screen!`);
|
||||||
this.mainWindow.setFullScreen(true);
|
this.mainWindow.setFullScreen(true);
|
||||||
@ -407,6 +399,16 @@ export class WindowHandler {
|
|||||||
this.mainWindow.loadURL(this.url, { userAgent });
|
this.mainWindow.loadURL(this.url, { userAgent });
|
||||||
this.mainWebContents = this.mainWindow.webContents;
|
this.mainWebContents = this.mainWindow.webContents;
|
||||||
}
|
}
|
||||||
|
if (isMaximized || isMaximizedFlag) {
|
||||||
|
this.mainWindow.maximize();
|
||||||
|
logger.info(
|
||||||
|
`window-handler: window is maximized!`,
|
||||||
|
isMaximized,
|
||||||
|
isMaximizedFlag,
|
||||||
|
);
|
||||||
|
mainEvents.publish('maximize');
|
||||||
|
}
|
||||||
|
this.mainWindow.show();
|
||||||
|
|
||||||
// check for build expiry in case of test builds
|
// check for build expiry in case of test builds
|
||||||
this.checkExpiry(this.mainWindow);
|
this.checkExpiry(this.mainWindow);
|
||||||
|
Loading…
Reference in New Issue
Block a user