mirror of
https://github.com/finos/SymphonyElectron.git
synced 2025-01-08 07:03:28 -06:00
Merge pull request #866 from johankwarnmarksymphony/sda-1720
fix: sda-1720 windows/electron BrowserWindow does not always open a window…
This commit is contained in:
commit
119da410dc
@ -152,6 +152,14 @@ export class WindowHandler {
|
|||||||
...this.windowOpts, ...getBounds(this.config.mainWinPos, DEFAULT_WIDTH, DEFAULT_HEIGHT),
|
...this.windowOpts, ...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('window-handler: this.mainWindow.getBounds: ' + JSON.stringify(this.mainWindow.getBounds()));
|
||||||
|
|
||||||
this.mainWindow.winName = apiName.mainWindowName;
|
this.mainWindow.winName = apiName.mainWindowName;
|
||||||
const {isFullScreen, isMaximized} = this.config.mainWinPos ? this.config.mainWinPos : {isFullScreen: false, isMaximized: false};
|
const {isFullScreen, isMaximized} = this.config.mainWinPos ? this.config.mainWinPos : {isFullScreen: false, isMaximized: false};
|
||||||
if (isMaximized) {
|
if (isMaximized) {
|
||||||
|
Loading…
Reference in New Issue
Block a user