Skip to content
This repository has been archived by the owner on May 24, 2022. It is now read-only.

Commit

Permalink
fix: Resize Fether window on Windows with additional height upon load…
Browse files Browse the repository at this point in the history
… to fit the Feedback button since the menu is shown
  • Loading branch information
ltfschoen committed Feb 7, 2019
1 parent f1d7792 commit b4318da
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion packages/fether-electron/src/main/app/messages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,14 @@ export default async (fetherAppWindow, event, action, ...args) => {
case 'app-resize': {
const [width] = fetherAppWindow.getContentSize();
const newHeight = args[0];
fetherAppWindow.setContentSize(width, Math.round(newHeight) + 2);
const feedbackButtonHeight = 20;
const resizeHeight = newHeight + 2;
const height =
process.platform === 'win32' && fetherAppWindow.isMenuBarVisible()
? resizeHeight + feedbackButtonHeight
: resizeHeight;

fetherAppWindow.setContentSize(width, height);
break;
}
case 'check-clock-sync': {
Expand Down

0 comments on commit b4318da

Please sign in to comment.