From 110e25af73e031d3cff23610fee459887cb1bbb9 Mon Sep 17 00:00:00 2001 From: Feross Aboukhadijeh Date: Wed, 10 Aug 2016 16:47:58 -0700 Subject: [PATCH 1/2] electron-prebuilt@1.3.3 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 0eedddf8..a976c471 100644 --- a/package.json +++ b/package.json @@ -22,7 +22,7 @@ "deep-equal": "^1.0.1", "dlnacasts": "^0.1.0", "drag-drop": "^2.12.1", - "electron-prebuilt": "1.3.2", + "electron-prebuilt": "1.3.3", "fs-extra": "^0.30.0", "hat": "0.0.3", "iso-639-1": "^1.2.1", From 3232e96f6e90d94b43b4610f76c503a5b4d04219 Mon Sep 17 00:00:00 2001 From: Feross Aboukhadijeh Date: Wed, 10 Aug 2016 16:48:32 -0700 Subject: [PATCH 2/2] Resize the window's content area Fixes: https://github.com/feross/webtorrent-desktop/issues/565 This was trivial thanks to a new Electron API in 1.3.3 --- src/main/windows/main.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/windows/main.js b/src/main/windows/main.js index bad4b522..df5d2cf4 100644 --- a/src/main/windows/main.js +++ b/src/main/windows/main.js @@ -141,7 +141,9 @@ function setBounds (bounds, maximize) { bounds.y = Math.round(scr.bounds.y + scr.bounds.height / 2 - bounds.height / 2) log('setBounds: centered to ' + JSON.stringify(bounds)) } - main.win.setBounds(bounds, true) + // Resize the window's content area (so window border doesn't need to be taken + // into account) + main.win.setContentBounds(bounds, true) } else { log('setBounds: not setting bounds because of window maximization') }