set page.clipRect values
authorWolfram Schneider <wosch@indexdata.dk>
Mon, 3 Feb 2014 17:54:24 +0000 (18:54 +0100)
committerWolfram Schneider <wosch@indexdata.dk>
Mon, 3 Feb 2014 17:54:24 +0000 (18:54 +0100)
contents which is outside of this area will be cutted (scrolling effect)

test/phantom/screenshot.js

index a91addf..08e230d 100644 (file)
@@ -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 () {