From ffb0c22a80e61df282f0e574fd1ba82dbe006dad Mon Sep 17 00:00:00 2001 From: as3boyan Date: Tue, 1 Jul 2014 18:30:26 +0300 Subject: [PATCH] Update screen.md --- docs/api/screen.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/api/screen.md b/docs/api/screen.md index a5e8c9cb937..c71799e9bd1 100644 --- a/docs/api/screen.md +++ b/docs/api/screen.md @@ -1,6 +1,12 @@ # screen Gets various info about screen size, displays, cursor position, etc. +```js +var Screen = require('screen'); +var BrowserWindow = require('browser-window'); +var size = Screen.getPrimaryDisplay().workAreaSize; +mainWindow = new BrowserWindow({ width: size.width, height: size.height }); +``` ## screen.getCursorScreenPoint()