Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 21 additions & 1 deletion browsers/viewport.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,27 @@ The `viewport` parameter sets the dimensions of the browser **window**, not the

If your automation expects an exact page viewport, either:

- **Set the page viewport through your automation framework**, which controls the rendered page size directly regardless of the window dimensions:
- **Use kiosk mode** to remove the browser UI, so the window dimensions match the page viewport exactly:

<CodeGroup>

```typescript Typescript/Javascript
const kernelBrowser = await kernel.browsers.create({
kiosk_mode: true,
viewport: { width: 1920, height: 1080 }
});
```

```python Python
kernel_browser = kernel.browsers.create(
kiosk_mode=True,
viewport={"width": 1920, "height": 1080}
)
```

</CodeGroup>

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Duplicates kiosk create walkthrough

Low Severity

The new kiosk CodeGroup repeats the create-browser walkthrough already documented on the Live View kiosk page instead of giving context-specific viewport guidance and linking to that canonical section.

Fix in Cursor Fix in Web

Triggered by learned rule: Single source of truth — no deep content duplication across pages

Reviewed by Cursor Bugbot for commit 8b27c2f. Configure here.


- **Set the page viewport through your automation framework.** This will update the rendered page size, but will not be reflected in the live view or computer controls:

<CodeGroup>

Expand Down
Loading