Updated phantomjs render script to take full height screenshots
This commit is contained in:
1 parent
28ff8a6716
commit
dbcd242b09
1 file changed
+7
-1
@@ -56,8 +56,14 @@
|
||||
|
||||
if (panelsRendered || totalWaitMs > timeoutMs) {
|
||||
var bb = page.evaluate(function () {
|
||||
return document.getElementsByClassName("main-view")[0].getBoundingClientRect();
|
||||
return document.getElementsByClassName("dashboard-container")[0].getBoundingClientRect();
|
||||
});
|
||||
|
||||
// reset viewport to render full page
|
||||
page.viewportSize = {
|
||||
width: bb.width,
|
||||
height: bb.height
|
||||
};
|
||||
|
||||
page.clipRect = {
|
||||
top: bb.top,
|
||||
|
||||
Reference in new issue
Block a user