Skip to content

Commit

Permalink
Merge pull request #24 from rhysd/add-notice
Browse files Browse the repository at this point in the history
Add a notice for useContentSize option of BrowserWindow
  • Loading branch information
mawie81 committed Apr 21, 2017
2 parents d346367 + bf986ba commit e76fe1e
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ app.on('ready', function () {
});
```

Please do not set `useContentSize` to `true` at creating `BrowserWindow` instance
because it changes how to calculate window size.

## API

#### windowStateKeeper(opts)
Expand Down Expand Up @@ -105,12 +108,12 @@ const windowState = windowStateKeeper({

`isMaximized` - *Boolean*

`true` if the window state was saved while the the window was maximized.
`true` if the window state was saved while the window was maximized.
`undefined` if the state has not been saved yet.

`isFullScreen` - *Boolean*

`true` if the window state was saved while the the window was in full screen
`true` if the window state was saved while the window was in full screen
mode. `undefined` if the state has not been saved yet.

`manage(window)` - *Function*
Expand Down

0 comments on commit e76fe1e

Please sign in to comment.