Skip to content

Commit 18c1466

Browse files
Removed Window Resize on Move
- Don't need this anymore!
1 parent a39e81d commit 18c1466

1 file changed

Lines changed: 0 additions & 10 deletions

File tree

src/index.js

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -76,16 +76,6 @@ const createWindow = () => {
7676
// Open the DevTools.
7777
//mainWindow.webContents.openDevTools();
7878

79-
mainWindow.on('move', () => {
80-
const { x, y, width, height } = mainWindow.getBounds();
81-
const newScreen = screen.getDisplayNearestPoint({ x: x + width / 2, y: y + height / 2 });
82-
83-
mainWindow.setSize(
84-
Math.round(newScreen.size.width * 0.8),
85-
Math.round(newScreen.size.height * 0.8)
86-
);
87-
});
88-
8979
mainWindow.once('ready-to-show', () => {
9080
if (app.isPackaged) {
9181
autoUpdater.setFeedURL({

0 commit comments

Comments
 (0)