SDA-4763 - Set min width for popout window (#2238)

This commit is contained in:
Kiran Niranjan 2024-12-17 15:10:49 +05:30 committed by GitHub
parent 5969396020
commit 51f34d0962
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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({