Skip to content
This repository has been archived by the owner on Apr 15, 2019. It is now read-only.

Restrict initial window size on big screens - Closes #221 #226

Merged
merged 3 commits into from
May 17, 2017
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions app/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ let win;
function createWindow() {
const { width, height } = electron.screen.getPrimaryDisplay().workAreaSize;
win = new BrowserWindow({
width: width - 250,
height: height - 150,
width: width > 2000 ? Math.floor(width * 0.5) : width - 250),
height: height > 1000 ? Math.floor(height * 0.7) : height - 150),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Check parentheses.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks. Stupid mistake. But made me realise that this file wasn't under eslint.

center: true,
});

Expand Down