docs: note that visual zoom is disabled by default (#16137)

This commit is contained in:
trop[bot]
2018-12-18 23:43:15 -07:00
committed by Shelley Vohr
parent 109c4d4079
commit 3be5734e0b
2 changed files with 12 additions and 0 deletions

View File

@@ -939,6 +939,12 @@ Sends a request to get current zoom level, the `callback` will be called with
Sets the maximum and minimum pinch-to-zoom level.
> **NOTE**: Visual zoom is disabled by default in Electron. To re-enable it, call:
>
> ```js
> contents.setVisualZoomLevelLimits(1, 3)
> ```
#### `contents.setLayoutZoomLevelLimits(minimumLevel, maximumLevel)`
* `minimumLevel` Number

View File

@@ -50,6 +50,12 @@ Returns `Number` - The current zoom level.
Sets the maximum and minimum pinch-to-zoom level.
> **NOTE**: Visual zoom is disabled by default in Electron. To re-enable it, call:
>
> ```js
> webFrame.setVisualZoomLevelLimits(1, 3)
> ```
### `webFrame.setLayoutZoomLevelLimits(minimumLevel, maximumLevel)`
* `minimumLevel` Number