Skip to content
This repository has been archived by the owner on Oct 8, 2022. It is now read-only.

Commit

Permalink
Increase min window size to be the same as the default
Browse files Browse the repository at this point in the history
  • Loading branch information
vitorgalvao committed Sep 30, 2017
1 parent 5770e7f commit e919d85
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions app/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,12 @@ function focus_webview() {
}

app.on('ready', function() {
const min_window_size = [352, 556]

// Initial window state
const mainWindowState = windowStateKeeper({
defaultWidth: 352,
defaultHeight: 556
defaultWidth: min_window_size[0],
defaultHeight: min_window_size[1]
});

// Create the browser window.
Expand All @@ -75,8 +77,8 @@ app.on('ready', function() {
y: mainWindowState.y,
width: mainWindowState.width,
height: mainWindowState.height,
minWidth: 298,
minHeight: 502,
minWidth: min_window_size[0],
minHeight: min_window_size[1],
titleBarStyle: 'hidden-inset',
title: 'Fog',
backgroundColor: '#fff',
Expand Down

0 comments on commit e919d85

Please sign in to comment.