mirror of
https://github.com/finos/SymphonyElectron.git
synced 2024-12-31 19:27:00 -06:00
setBounds make the application unresponsive and not usable
This commit is contained in:
parent
167bd14191
commit
390a2722fd
@ -316,18 +316,6 @@ export class WindowHandler {
|
|||||||
...getBounds(this.config.mainWinPos, DEFAULT_WIDTH, DEFAULT_HEIGHT),
|
...getBounds(this.config.mainWinPos, DEFAULT_WIDTH, DEFAULT_HEIGHT),
|
||||||
}) as ICustomBrowserWindow;
|
}) 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(
|
logger.info(
|
||||||
'window-handler: this.mainWindow.getBounds: ' +
|
'window-handler: this.mainWindow.getBounds: ' +
|
||||||
JSON.stringify(this.mainWindow.getBounds()),
|
JSON.stringify(this.mainWindow.getBounds()),
|
||||||
|
Loading…
Reference in New Issue
Block a user