set page.clipRect values
[mkws-moved-to-github.git] / 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 () {