Skip to content

Commit

Permalink
Added Math.round to default window bounds setting value, because non-…
Browse files Browse the repository at this point in the history
…integer values are invalid for electron bounds type.
  • Loading branch information
ark120202 committed Aug 25, 2017
1 parent 35bed50 commit c1904c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/settings/elements/bounds.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ export default {
),
default() {
const screenBounds = screen.getPrimaryDisplay().bounds;
return _.mapValues(screenBounds, value => value * 0.75);
return _.mapValues(screenBounds, value => Math.round(value * 0.75));
},
};

0 comments on commit c1904c5

Please sign in to comment.