diff --git a/app/main.js b/app/main.js index 6c53eb204..f2d7a6062 100644 --- a/app/main.js +++ b/app/main.js @@ -785,9 +785,9 @@ function createPreferencesWindow () { return } const modalPath = path.join('file://', __dirname, '/preferences.html') - const maxHeight = (electron.screen + const maxHeight = electron.screen .getDisplayNearestPoint(electron.screen.getCursorScreenPoint()) - .workAreaSize.height - 530) / 2.0 + 490 + .workAreaSize.height * 0.9 preferencesWin = new BrowserWindow({ autoHideMenuBar: true, icon: windowIconPath(), diff --git a/app/preferences.js b/app/preferences.js index df0387bd2..adaf5e512 100644 --- a/app/preferences.js +++ b/app/preferences.js @@ -286,7 +286,7 @@ function setWindowHeight () { const classes = document.querySelector('body').classList const height = document.querySelector('body').scrollHeight if (classes.contains('darwin')) { - remote.getCurrentWindow().setSize(bounds.width, height + 22) + remote.getCurrentWindow().setSize(bounds.width, height + 32) } else if (classes.contains('win32')) { remote.getCurrentWindow().setSize(bounds.width, height + 40) }