File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed
Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ describe('main/config.ts', () => {
3030 expect ( WindowConfig . height ) . toBe ( 400 ) ;
3131 expect ( WindowConfig . minWidth ) . toBe ( 500 ) ;
3232 expect ( WindowConfig . minHeight ) . toBe ( 400 ) ;
33- expect ( WindowConfig . resizable ) . toBe ( false ) ;
33+ expect ( WindowConfig . resizable ) . toBe ( true ) ;
3434 expect ( WindowConfig . skipTaskbar ) . toBe ( true ) ;
3535 expect ( WindowConfig . webPreferences ) . toBeDefined ( ) ;
3636 expect ( WindowConfig . webPreferences . contextIsolation ) . toBe ( true ) ;
Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ export const WindowConfig: BrowserWindowConstructorOptions = {
4444 height : 400 ,
4545 minWidth : 500 ,
4646 minHeight : 400 ,
47- resizable : false ,
47+ resizable : true ,
4848 /** Hide the app from the Windows taskbar */
4949 skipTaskbar : true ,
5050 webPreferences : {
Original file line number Diff line number Diff line change @@ -34,11 +34,11 @@ export function configureWindowEvents(mb: Menubar): void {
3434
3535 /**
3636 * When DevTools is closed, restore the window to its original size and position it centered on the tray icon.
37+ * Keep the window resizable to allow users to adjust the size at any time.
3738 */
3839 mb . window . webContents . on ( 'devtools-closed' , ( ) => {
3940 const trayBounds = mb . tray . getBounds ( ) ;
4041 mb . window . setSize ( WindowConfig . width , WindowConfig . height ) ;
4142 mb . positioner . move ( 'trayCenter' , trayBounds ) ;
42- mb . window . resizable = false ;
4343 } ) ;
4444}
You can’t perform that action at this time.
0 commit comments