From 56cdf94f9558ddb6c8a129d450f6284c42cb5fec Mon Sep 17 00:00:00 2001 From: Milan Burda Date: Tue, 15 May 2018 02:17:04 +0200 Subject: [PATCH] Fix contents.setSize(options) documentation in web-contents.md (#12922) --- docs/api/web-contents.md | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/docs/api/web-contents.md b/docs/api/web-contents.md index a16c887ca2a9..7e5a891076b8 100644 --- a/docs/api/web-contents.md +++ b/docs/api/web-contents.md @@ -1419,11 +1419,17 @@ Shows pop-up dictionary that searches the selected word on the page. Set the size of the page. This is only supported for `` guest contents. * `options` Object - * `normal` Object (optional) - Normal size of the page. This can be used in + * `enableAutoSize` Boolean (optional) - true to make the webview container automatically + resize within the bounds specified by the attributes normal, min and max. + * `normal` [Size](structures/size.md) (optional) - Normal size of the page. This can be used in + combination with the [`disableguestresize`](webview-tag.md#disableguestresize) + attribute to manually resize the webview guest contents. + * `min` [Size](structures/size.md) (optional) - Minimum size of the page. This can be used in + combination with the [`disableguestresize`](webview-tag.md#disableguestresize) + attribute to manually resize the webview guest contents. + * `max` [Size](structures/size.md) (optional) - Maximium size of the page. This can be used in combination with the [`disableguestresize`](webview-tag.md#disableguestresize) attribute to manually resize the webview guest contents. - * `width` Integer - * `height` Integer #### `contents.isOffscreen()`