Skip to content

Commit

Permalink
docs(api.md): fixes #3517 (#3561)
Browse files Browse the repository at this point in the history
Add required to height and width properties in setViewport function
  • Loading branch information
Nazanin1369 authored and aslushnikov committed Nov 19, 2018
1 parent d9d9996 commit f6bfa32
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/api.md
Expand Up @@ -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`
Expand Down

0 comments on commit f6bfa32

Please sign in to comment.