mirror of
https://github.com/finos/SymphonyElectron.git
synced 2025-02-25 18:55:29 -06:00
SDA-4763 - Set min width for popout window (#2238)
This commit is contained in:
parent
5969396020
commit
51f34d0962
@ -37,7 +37,7 @@ import {
|
||||
preventWindowNavigation,
|
||||
} from './window-utils';
|
||||
|
||||
const DEFAULT_POP_OUT_WIDTH = 300;
|
||||
const DEFAULT_POP_OUT_WIDTH = 400;
|
||||
const DEFAULT_POP_OUT_HEIGHT = 600;
|
||||
|
||||
const MIN_WIDTH = 400;
|
||||
@ -247,6 +247,7 @@ export const handleChildWindow = (webContents: WebContents): void => {
|
||||
'contextOriginUrl',
|
||||
]);
|
||||
browserWin.setFullScreenable(true);
|
||||
browserWin.setMinimumSize(MIN_WIDTH, MIN_HEIGHT);
|
||||
browserWin.origin = contextOriginUrl || windowHandler.url;
|
||||
if (browserWin && !browserWin.isDestroyed()) {
|
||||
browserWin.setBounds({
|
||||
|
Loading…
Reference in New Issue
Block a user