From 5010150c8cc39a8233e0f1cfec6ddcf4f9dea5b3 Mon Sep 17 00:00:00 2001 From: Daniel Pham Date: Mon, 23 May 2016 12:17:43 -0400 Subject: [PATCH] :memo: Mention that x and y have to be used together when creating new window [ci skip] --- docs/api/browser-window.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/api/browser-window.md b/docs/api/browser-window.md index 0bd38dec560..b8d379a916a 100644 --- a/docs/api/browser-window.md +++ b/docs/api/browser-window.md @@ -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`.