From 35e000024ccf4633be9e1cd0f674f294b5bfcd67 Mon Sep 17 00:00:00 2001 From: Kevin Sawicki Date: Tue, 15 Nov 2016 13:59:01 -0800 Subject: [PATCH] Minor doc updates to setSize/disableguestresize --- docs/api/web-contents.md | 6 ++++-- docs/api/web-view-tag.md | 4 ++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/docs/api/web-contents.md b/docs/api/web-contents.md index f4c1f58d3a..27000434a5 100644 --- a/docs/api/web-contents.md +++ b/docs/api/web-contents.md @@ -1133,10 +1133,12 @@ Shows pop-up dictionary that searches the selected word on the page. #### `contents.setSize(options)` -Controls the bounds of the [``](web-view-tag.md) guest. +Set the size of the page. This is only supported for `` guest contents. * `options` Object - * `normal` Object (optional) - New size of the webview guest. This is can be used in combination with the [`disableguestresize`](web-view-tag.md#disableguestresize) attribute to manually resize the webview guest. + * `normal` Object (optional) - Normal size of the page. This can be used in + combination with the [`disableguestresize`](web-view-tag.md#disableguestresize) + attribute to manually resize the webview guest contents. * `width` Integer * `height` Integer diff --git a/docs/api/web-view-tag.md b/docs/api/web-view-tag.md index 84e0efb252..ec3adbeee6 100644 --- a/docs/api/web-view-tag.md +++ b/docs/api/web-view-tag.md @@ -253,8 +253,8 @@ Prevents the webview contents from resizing when the webview element itself is resized. This can be used in combination with -[`webContents.setSize`](web-view-tag.md#contentssetsize) to manually -resize the webview contents in reaction to e.g. window size changes. This can +[`webContents.setSize`](web-contents.md#contentssetsizeoptions) to manually +resize the webview contents in reaction to a window size change. This can make resizing faster compared to relying on the webview element bounds to automatically resize the contents.