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:
Jessica Lord 2016-05-23 15:44:42 -07:00
commit 1ba07a9d6d

View file

@ -33,10 +33,10 @@ It creates a new `BrowserWindow` with native properties as set by the `options`.
* `options` Object * `options` Object
* `width` Integer - Window's width in pixels. Default is `800`. * `width` Integer - Window's width in pixels. Default is `800`.
* `height` Integer - Window's height in pixels. Default is `600`. * `height` Integer - Window's height in pixels. Default is `600`.
* `x` Integer - Window's left offset from screen. Default is to center the * `x` Integer (**required** if y is used) - Window's left offset from screen.
window. Default is to center the window.
* `y` Integer - Window's top offset from screen. Default is to center the * `y` Integer (**required** if x is used) - Window's top offset from screen.
window. Default is to center the window.
* `useContentSize` Boolean - The `width` and `height` would be used as web * `useContentSize` Boolean - The `width` and `height` would be used as web
page's size, which means the actual window's size will include window page's size, which means the actual window's size will include window
frame's size and be slightly larger. Default is `false`. frame's size and be slightly larger. Default is `false`.