From eaacbc86c7f2a5997e75615a6acdfefd1cf198eb Mon Sep 17 00:00:00 2001 From: leethomas Date: Wed, 18 May 2016 23:59:18 -0700 Subject: [PATCH] =?utf8?q?=F0=9F=93=9D=20=20update=20english=20docs=20to?= =?utf8?q?=20include=20setSheetOffsets?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- docs/api/browser-window.md | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/docs/api/browser-window.md b/docs/api/browser-window.md index 9378587..a00b814 100644 --- a/docs/api/browser-window.md +++ b/docs/api/browser-window.md @@ -682,7 +682,7 @@ Returns the title of the native window. **Note:** The title of web page can be different from the title of the native window. -### `win.setSheetOffset(offset)` _OS X_ +### `win.setSheetOffset(offsetY)` _OS X_ Changes the attachment point for sheets on Mac OS X. By default, sheets are attached just below the window frame, but you may want to display them beneath @@ -693,6 +693,16 @@ let toolbarRect = document.getElementById('toolbar').getBoundingClientRect(); win.setSheetOffset(toolbarRect.height); ``` +### `win.setSheetOffsets(offsetX, offsetY)` _OS X_ + +Like `win.setSheetOffset` but allows for an offset along the x-axis to be set +in addition to the y-axis. + +```javascript +let toolbarRect = document.getElementById('toolbar').getBoundingClientRect(); +win.setSheetOffset(toolbarRect.left, toolbarRect.height); +``` + ### `win.flashFrame(flag)` * `flag` Boolean -- 2.7.4