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.
This commit is contained in:
luckyjay 2016-01-09 23:49:37 -05:00
parent 8c446b794d
commit 19700ca6da

View File

@ -13,7 +13,6 @@ var js = input[4];
var pageWidth = (vp_w!="")?parseInt(vp_w, 10):1024; var pageWidth = (vp_w!="")?parseInt(vp_w, 10):1024;
var pageHeight = (vp_h!="")?parseInt(vp_h, 10):'auto'; var pageHeight = (vp_h!="")?parseInt(vp_h, 10):'auto';
page.viewportSize = { width: pageWidth, height: pageHeight }; page.viewportSize = { width: pageWidth, height: pageHeight };
page.clipRect = { top: 0, left: 0, width: pageWidth, height: pageHeight };
page.settings['javascriptEnabled'] = (js=="no")?false:true; page.settings['javascriptEnabled'] = (js=="no")?false:true;
page.open(address, function (status) { page.open(address, function (status) {