From 19700ca6da1c926267fa301c6b9bb5fe0a670fa2 Mon Sep 17 00:00:00 2001 From: luckyjay Date: Sat, 9 Jan 2016 23:49:37 -0500 Subject: [PATCH] Remove clipRect setting to fix rendering It seems the clipRect setting was preventing phantom from rendering anything. I think after this and my previous pull request, phantomJS is working now. --- phantom.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/phantom.js b/phantom.js index 7124e70..822c7b4 100644 --- a/phantom.js +++ b/phantom.js @@ -13,7 +13,6 @@ var js = input[4]; var pageWidth = (vp_w!="")?parseInt(vp_w, 10):1024; var pageHeight = (vp_h!="")?parseInt(vp_h, 10):'auto'; page.viewportSize = { width: pageWidth, height: pageHeight }; -page.clipRect = { top: 0, left: 0, width: pageWidth, height: pageHeight }; page.settings['javascriptEnabled'] = (js=="no")?false:true; page.open(address, function (status) { @@ -26,4 +25,4 @@ page.settings['javascriptEnabled'] = (js=="no")?false:true; phantom.exit(); }, 200); } - }); \ No newline at end of file + });