mirror of
https://github.com/finos/SymphonyElectron.git
synced 2024-12-28 09:51:06 -06:00
Merge pull request #1120 from johankwarnmarksymphony/sda-2694-3
fix: setBounds make the application unresponsive and not usable
This commit is contained in:
commit
c1e31ef4a4
@ -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()),
|
||||
|
Loading…
Reference in New Issue
Block a user