Fix contents.setSize(options) documentation in web-contents.md (#12922)

This commit is contained in:
Milan Burda 2018-05-15 02:17:04 +02:00 committed by Samuel Attard
parent fc34076c2b
commit 56cdf94f95

View file

@ -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 `<webview>` guest contents. Set the size of the page. This is only supported for `<webview>` guest contents.
* `options` Object * `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) combination with the [`disableguestresize`](webview-tag.md#disableguestresize)
attribute to manually resize the webview guest contents. attribute to manually resize the webview guest contents.
* `width` Integer
* `height` Integer
#### `contents.isOffscreen()` #### `contents.isOffscreen()`