From: Wolfram Schneider Date: Mon, 3 Feb 2014 17:54:24 +0000 (+0100) Subject: set page.clipRect values X-Git-Tag: 1.0.0~1529^2~9 X-Git-Url: http://git.indexdata.com/?p=mkws-moved-to-github.git;a=commitdiff_plain;h=ad3295052fac50a2f7b9a9e50043dc02a8d119ac set page.clipRect values contents which is outside of this area will be cutted (scrolling effect) --- 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 () {