Skip to content

Commit f9e685b

Browse files
committed
window: windows has scrollbar width
1 parent 7fe4fe0 commit f9e685b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

modules/backend/controller.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import * as os from 'os'
12
import { BrowserWindow, ipcMain, dialog, app, shell } from 'electron'
23
import * as path from 'path'
34
import * as fs from 'fs-extra'
@@ -57,7 +58,7 @@ class Controller {
5758

5859
createWindow() {
5960
const win = new BrowserWindow({
60-
width: 800,
61+
width: os.platform() === 'darwin' ? 800 : 834,
6162
height: 600,
6263
minWidth: 540,
6364
// titleBarStyle: 'hidden',

0 commit comments

Comments
 (0)