Skip to content

Commit

Permalink
SDA-4763 - Set min width for popout window
Browse files Browse the repository at this point in the history
  • Loading branch information
KiranNiranjan committed Dec 16, 2024
1 parent 5969396 commit 0ef1344
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/app/child-window-handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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({
Expand Down

0 comments on commit 0ef1344

Please sign in to comment.