Skip to content

Commit fddb1d2

Browse files
committed
fix for floats on screen position
1 parent 6789339 commit fddb1d2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

build/webpack.prod.conf.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ const webpackConfig = merge(baseWebpackConfig, {
4343
warnings: false
4444
}
4545
},
46-
sourceMap: false,
46+
sourceMap: true,
4747
parallel: true
4848
}),
4949
// extract css into its own file

electron.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ class LowLevelWindowService {
219219
let bounds = electron.screen.getPrimaryDisplay().bounds;
220220
let x = bounds.x + (leftBound + ((bounds.width - width) / 2));
221221
let y = bounds.y + ((bounds.height - height) / 2);
222-
win.setPosition(x,y);
222+
win.setPosition(Math.round(x),Math.round(y));
223223

224224
win.once('closed', async () => {
225225
// This is a fix for MacOS systems which causes the

0 commit comments

Comments
 (0)