📝 Mention that x and y have to be used together when creating new window

[ci skip]
This commit is contained in:
Daniel Pham 2016-05-23 12:17:43 -04:00
parent c489d6d4b3
commit 5010150c8c

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`.