Merge pull request #5659 from danhp/patch-2
Mention that x and y have to be used together when creating new window
This commit is contained in:
Коммит
1ba07a9d6d
|
@ -33,10 +33,10 @@ It creates a new `BrowserWindow` with native properties as set by the `options`.
|
|||
* `options` Object
|
||||
* `width` Integer - Window's width in pixels. Default is `800`.
|
||||
* `height` Integer - Window's height in pixels. Default is `600`.
|
||||
* `x` Integer - Window's left offset from screen. Default is to center the
|
||||
window.
|
||||
* `y` Integer - Window's top offset from screen. Default is to center the
|
||||
window.
|
||||
* `x` Integer (**required** if y is used) - Window's left offset from screen.
|
||||
Default is to center the window.
|
||||
* `y` Integer (**required** if x is used) - Window's top offset from screen.
|
||||
Default is to center the window.
|
||||
* `useContentSize` Boolean - The `width` and `height` would be used as web
|
||||
page's size, which means the actual window's size will include window
|
||||
frame's size and be slightly larger. Default is `false`.
|
||||
|
|
Загрузка…
Ссылка в новой задаче