diff --git a/docs/api/browser-window.md b/docs/api/browser-window.md index e53ec013de6f..d0dc45a39680 100644 --- a/docs/api/browser-window.md +++ b/docs/api/browser-window.md @@ -627,7 +627,7 @@ Returns a boolean, whether the window is in fullscreen mode. #### `win.setAspectRatio(aspectRatio[, extraSize])` _macOS_ -* `aspectRatio` The aspect ratio to maintain for some portion of the +* `aspectRatio` Float - The aspect ratio to maintain for some portion of the content view. * `extraSize` Object (optional) - The extra size not to be included while maintaining the aspect ratio. @@ -820,6 +820,9 @@ window. #### `win.setSheetOffset(offsetY[, offsetX])` _macOS_ +* `offsetY` Float +* `offsetX` Float (optional) + Changes the attachment point for sheets on macOS. By default, sheets are attached just below the window frame, but you may want to display them beneath a HTML-rendered toolbar. For example: diff --git a/docs/api/web-contents.md b/docs/api/web-contents.md index 39556f5bbc95..c1ad9912c4c3 100644 --- a/docs/api/web-contents.md +++ b/docs/api/web-contents.md @@ -918,7 +918,7 @@ app.on('ready', () => { (screenPosition == mobile) (default: `{x: 0, y: 0}`) * `x` Integer - Set the x axis offset from top left corner * `y` Integer - Set the y axis offset from top left corner -* `deviceScaleFactor` Integer - Set the device scale factor (if zero defaults to +* `deviceScaleFactor` Float - Set the device scale factor (if zero defaults to original device scale factor) (default: `0`) * `viewSize` Object - Set the emulated view size (empty means no override) * `width` Integer - Set the emulated view width