From 0ef1344fb72d245863dee63aa99326ad65fffb94 Mon Sep 17 00:00:00 2001 From: Kiran Niranjan Date: Mon, 16 Dec 2024 15:09:13 +0530 Subject: [PATCH] SDA-4763 - Set min width for popout window --- src/app/child-window-handler.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/app/child-window-handler.ts b/src/app/child-window-handler.ts index 180a55649..ae1fc31b7 100644 --- a/src/app/child-window-handler.ts +++ b/src/app/child-window-handler.ts @@ -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({