Function When_I_set_viewport
- When_I_set_viewport(preset, orientation?): void
Parameters
- preset:
| "macbook-16"
| "macbook-15"
| "macbook-13"
| "macbook-11"
| "ipad-2"
| "ipad-mini"
| "iphone-xr"
| "iphone-x"
| "iphone-6+"
| "iphone-se2"
| "iphone-8"
| "iphone-7"
| "iphone-6"
| "iphone-5"
| "iphone-4"
| "iphone-3"
| "samsung-s10"
| "samsung-note9" - orientation: "portrait" | "landscape" = 'portrait'
Returns void
When I set viewport to preset:
When I set viewport to preset and orientation:
Preset supports the following options:
ipad-2
ipad-mini
iphone-3
iphone-4
iphone-5
iphone-6
iphone-6+
iphone-7
iphone-8
iphone-x
iphone-xr
iphone-se2
macbook-11
macbook-13
macbook-15
macbook-16
samsung-note9
samsung-s10
The default orientation is
portrait
.