Merge pull request #5411 from electron/min-max-size-docs

docs: Make it clear that size constraints only apply for users
This commit is contained in:
Cheng Zhao 2016-05-06 14:24:59 +09:00
commit 16bfc19547

View file

@ -96,6 +96,11 @@ It creates a new `BrowserWindow` with native properties as set by the `options`.
* `webPreferences` Object - Settings of web page's features. See more about * `webPreferences` Object - Settings of web page's features. See more about
this below. this below.
When setting minimum or maximum window size with `minWidth`/`maxWidth`/
`minHeight`/`maxHeight`, it only constrains the users, it won't prevent you from
passing a size that does not follow size constraints to `setBounds`/`setSize` or
to the constructor of `BrowserWindow`.
The possible values and behaviors of `type` option are platform dependent, The possible values and behaviors of `type` option are platform dependent,
supported values are: supported values are: