From f6bfa3231aca560a8d091dc4ebcb969926d3a1be Mon Sep 17 00:00:00 2001 From: Nazanin Delam Date: Mon, 19 Nov 2018 12:35:16 -0800 Subject: [PATCH] docs(api.md): fixes #3517 (#3561) Add required to height and width properties in setViewport function --- docs/api.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/api.md b/docs/api.md index d88c51187eb..ceffda08236 100644 --- a/docs/api.md +++ b/docs/api.md @@ -1705,8 +1705,8 @@ puppeteer.launch().then(async browser => { #### page.setViewport(viewport) - `viewport` <[Object]> - - `width` <[number]> page width in pixels. - - `height` <[number]> page height in pixels. + - `width` <[number]> page width in pixels. **required** + - `height` <[number]> page height in pixels. **required** - `deviceScaleFactor` <[number]> Specify device scale factor (can be thought of as dpr). Defaults to `1`. - `isMobile` <[boolean]> Whether the `meta viewport` tag is taken into account. Defaults to `false`. - `hasTouch`<[boolean]> Specifies if viewport supports touch events. Defaults to `false`