From 11cf4aeecdef232a6e64f3229047df9f2ae4be36 Mon Sep 17 00:00:00 2001 From: Feross Aboukhadijeh Date: Mon, 9 May 2016 02:00:02 +0200 Subject: [PATCH 1/2] electron-prebuilt@0.37.8 All bug fixes. The only new feature that's relevant to WebTorrent Desktop is `setSheetOffset` --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index c3c0568b..ea32621d 100644 --- a/package.json +++ b/package.json @@ -24,7 +24,7 @@ "dlnacasts": "^0.0.3", "drag-drop": "^2.11.0", "electron-localshortcut": "^0.6.0", - "electron-prebuilt": "0.37.6", + "electron-prebuilt": "0.37.8", "fs-extra": "^0.27.0", "hyperx": "^2.0.2", "languagedetect": "^1.1.1", From ffbd8184b5967cec70df2d292c8a5e927411e3bd Mon Sep 17 00:00:00 2001 From: Feross Aboukhadijeh Date: Mon, 9 May 2016 02:06:17 +0200 Subject: [PATCH 2/2] Set sheet offset on OS X --- main/windows.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/main/windows.js b/main/windows.js index 00da884b..33189df5 100644 --- a/main/windows.js +++ b/main/windows.js @@ -79,6 +79,9 @@ function createWebTorrentHiddenWindow () { }) } +var HEADER_HEIGHT = 37 +var TORRENT_HEIGHT = 120 + function createMainWindow () { if (windows.main) { return focusWindow(windows.main) @@ -94,9 +97,10 @@ function createMainWindow () { titleBarStyle: 'hidden-inset', // Hide OS chrome, except traffic light buttons (OS X) useContentSize: true, // Specify web page size without OS chrome width: 500, - height: 38 + (120 * 5) // header height + 4 torrents + height: HEADER_HEIGHT + (TORRENT_HEIGHT * 5) // header height + 4 torrents }) win.loadURL(config.WINDOW_MAIN) + win.setSheetOffset(HEADER_HEIGHT) win.webContents.on('dom-ready', function () { menu.onToggleFullScreen()