From f7b22467ee767fb7048d270cf10214df8d484cea Mon Sep 17 00:00:00 2001 From: Juan Cruz Viotti Date: Tue, 5 Apr 2016 09:26:46 -0400 Subject: [PATCH] Enable useContentSize BrowserWindow option MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From the documentation: > `useContentSize` Boolean - The `width` and `height` would be used as web > page’s size, which means the actual window’s size will include window > frame’s size and be slightly larger. Default is `false`. The original issue is that when you specify a width/height, the actual size that you get is slighly smaller, since the OS title bar is included in the size you provide. By using the `useContentSize` option, we ensure the `WebView` gets the intended size, no matter the title bar. This PR invalidates: https://github.com/resin-io/etcher/pull/244 Signed-off-by: Juan Cruz Viotti --- lib/etcher.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/etcher.js b/lib/etcher.js index 8bc8abb3..c59ac37f 100644 --- a/lib/etcher.js +++ b/lib/etcher.js @@ -38,6 +38,7 @@ electron.app.on('ready', function() { mainWindow = new electron.BrowserWindow({ width: 800, height: 380, + useContentSize: true, show: false, resizable: false, fullscreen: false,