Skip to content

Commit 51f34d0

Browse files
SDA-4763 - Set min width for popout window (#2238)
1 parent 5969396 commit 51f34d0

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/app/child-window-handler.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ import {
3737
preventWindowNavigation,
3838
} from './window-utils';
3939

40-
const DEFAULT_POP_OUT_WIDTH = 300;
40+
const DEFAULT_POP_OUT_WIDTH = 400;
4141
const DEFAULT_POP_OUT_HEIGHT = 600;
4242

4343
const MIN_WIDTH = 400;
@@ -247,6 +247,7 @@ export const handleChildWindow = (webContents: WebContents): void => {
247247
'contextOriginUrl',
248248
]);
249249
browserWin.setFullScreenable(true);
250+
browserWin.setMinimumSize(MIN_WIDTH, MIN_HEIGHT);
250251
browserWin.origin = contextOriginUrl || windowHandler.url;
251252
if (browserWin && !browserWin.isDestroyed()) {
252253
browserWin.setBounds({

0 commit comments

Comments
 (0)