setBounds make the application unresponsive and not usable

This commit is contained in:
Johan Kwarnmark 2020-11-20 13:00:49 +01:00
parent 167bd14191
commit 390a2722fd

View File

@ -316,18 +316,6 @@ export class WindowHandler {
...getBounds(this.config.mainWinPos, DEFAULT_WIDTH, DEFAULT_HEIGHT),
}) as ICustomBrowserWindow;
if (isWindowsOS) {
// SDA-1720 when Symphony on secondary screen is wider than main screen, the window on secondary is clapmed to the width of main screen
// Only happens on windows (BrowserWindow)
this.mainWindow.setBounds(
getBounds(
this.config.mainWinPos,
DEFAULT_WIDTH,
DEFAULT_HEIGHT,
) as Electron.Rectangle,
);
}
logger.info(
'window-handler: this.mainWindow.getBounds: ' +
JSON.stringify(this.mainWindow.getBounds()),