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:
commit
16bfc19547
1 changed files with 5 additions and 0 deletions
|
@ -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:
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue