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:
parent
8c446b794d
commit
19700ca6da
@ -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);
|
||||
}
|
||||
});
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user