Move "setSheetOffset" to the BrowserWindow

This commit is contained in:
Ben Gotow 2016-04-18 22:39:12 -07:00
parent 1976c271ec
commit 8f89cd2d59
7 changed files with 27 additions and 33 deletions

View file

@ -675,6 +675,17 @@ 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)`
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 a HTML-rendered
toolbar. For example:
```
var toolbarRect = document.getElementById('toolbar').getBoundingClientRect();
win.setSheetOffset(toolbarRect.height);
```
### `win.flashFrame(flag)`
* `flag` Boolean