diff --git a/app/main.js b/app/main.js index e3cc7046..23ca8704 100644 --- a/app/main.js +++ b/app/main.js @@ -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) diff --git a/terminus-core/src/services/docking.service.ts b/terminus-core/src/services/docking.service.ts index 933232a7..c327cde6 100644 --- a/terminus-core/src/services/docking.service.ts +++ b/terminus-core/src/services/docking.service.ts @@ -40,12 +40,12 @@ export class DockingService { newBounds.height = Math.round(fill * display.bounds.height) } if (dockSide === 'right') { - newBounds.x = display.bounds.x + Math.round(display.bounds.width * (1.0 - fill)) + newBounds.x = display.bounds.x + display.bounds.width - newBounds.width } else { newBounds.x = display.bounds.x } if (dockSide === 'bottom') { - newBounds.y = display.bounds.y + Math.round(display.bounds.height * (1.0 - fill)) + newBounds.y = display.bounds.y + display.bounds.height - newBounds.height } else { newBounds.y = display.bounds.y }