Skip to content

Commit

Permalink
[menu-bar] Fix Window height on electron
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrieldonadel committed Feb 9, 2024
1 parent 5d2088d commit 670add2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/menu-bar/electron/modules/WindowManager/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const openWindow = async (moduleName: string, options: WindowOptions) => {

window = new BrowserWindow({
width: windowStyle.width ?? 300,
height: windowStyle.height ?? 400,
height: (windowStyle.height ?? 400) + (windowStyle.titlebarAppearsTransparent ? 30 : 0),
title: options?.title ?? moduleName,
frame: !windowStyle.mask?.includes(WindowStyleMask.FullSizeContentView),
resizable: windowStyle.mask?.includes(WindowStyleMask.Resizable) ?? false,
Expand Down

0 comments on commit 670add2

Please sign in to comment.