mirror of
https://github.com/zhigang1992/devhub.git
synced 2026-06-15 09:58:29 +08:00
Merge branch 'desktop' of github.com:devhubapp/devhub into desktop
This commit is contained in:
@@ -536,11 +536,17 @@ function updateBrowserWindowOptions() {
|
||||
)
|
||||
|
||||
mainWindow.setMaximumSize(
|
||||
Math.floor(
|
||||
options.maxWidth || screen.getPrimaryDisplay().workAreaSize.width,
|
||||
Math.ceil(
|
||||
options.maxWidth ||
|
||||
(process.platform === 'darwin'
|
||||
? screen.getPrimaryDisplay().workAreaSize.width
|
||||
: 0),
|
||||
),
|
||||
Math.floor(
|
||||
options.maxHeight || screen.getPrimaryDisplay().workAreaSize.height,
|
||||
Math.ceil(
|
||||
options.maxHeight ||
|
||||
(process.platform === 'darwin'
|
||||
? screen.getPrimaryDisplay().workAreaSize.height
|
||||
: 0),
|
||||
),
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user