From ad3295052fac50a2f7b9a9e50043dc02a8d119ac Mon Sep 17 00:00:00 2001 From: Wolfram Schneider Date: Mon, 3 Feb 2014 18:54:24 +0100 Subject: [PATCH] set page.clipRect values contents which is outside of this area will be cutted (scrolling effect) --- test/phantom/screenshot.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/phantom/screenshot.js b/test/phantom/screenshot.js index a91addf..08e230d 100644 --- a/test/phantom/screenshot.js +++ b/test/phantom/screenshot.js @@ -15,6 +15,11 @@ page.viewportSize = { height: system.args[4] ? system.args[4] : 1000 }; +page.clipRect = { + width: page.viewportSize.width, + height: page.viewportSize.height +}; + page.open(url, function () { // small delay setTimeout(function () { -- 1.7.10.4