possible fix for docking sizing (#9)

This commit is contained in:
Eugene Pankov
2017-07-25 21:49:20 +02:00
parent 0fe2de591a
commit de29e34363
2 changed files with 4 additions and 2 deletions

View File

@@ -76,6 +76,8 @@ setupWindowManagement = () => {
electron.ipcMain.on('window-set-bounds', (event, bounds) => {
let actualBounds = app.window.getBounds()
actualBounds.width -= bounds.x - actualBounds.x
actualBounds.height -= bounds.y - actualBounds.y
actualBounds.x = bounds.x
actualBounds.y = bounds.y
app.window.setBounds(actualBounds)