Browse Source

fix(ui): ensure content size same across platforms

We set `titleBarStyle: hidden` which causes the title bar to be hidden
on the mac so that we can better integrate it with our designs. On
windows this has no effect and the titlebar is still rendered. This
causes the actual display area to be different on mac vs windows.

Set the `useContentSize` to ensure that the rendered content is the
same size on all platforms.

See https://github.com/electron/electron/blob/master/docs/api/browser-window.md#new-browserwindowoptions

Fix #666
renovate/lint-staged-8.x
Tom Kirkpatrick 7 years ago
parent
commit
6c5881a1f8
No known key found for this signature in database GPG Key ID: 72203A8EC5967EA8
  1. 1
      app/main.dev.js

1
app/main.dev.js

@ -24,6 +24,7 @@ app.on('ready', () => {
// Create a new browser window.
const mainWindow = new BrowserWindow({
show: false,
useContentSize: true,
titleBarStyle: 'hidden',
width: 950,
height: 600,

Loading…
Cancel
Save