Merge pull request #1120 from johankwarnmarksymphony/sda-2694-3

fix: setBounds make the application unresponsive and not usable
This commit is contained in:
Johan Kwarnmark 2020-11-20 13:34:46 +01:00 committed by GitHub
commit c1e31ef4a4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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()),