diff --git a/lib/Page.js b/lib/Page.js index 328bc023c1e..51f37b49645 100644 --- a/lib/Page.js +++ b/lib/Page.js @@ -395,8 +395,8 @@ class Page extends EventEmitter { if (clipRect) { await Promise.all([ this._client.send('Emulation.setVisibleSize', { - width: clipRect.width / this._screenDPI, - height: clipRect.height / this._screenDPI, + width: Math.ceil(clipRect.width / this._screenDPI), + height: Math.ceil(clipRect.height / this._screenDPI), }), this._client.send('Emulation.forceViewport', { x: clipRect.x / this._screenDPI,