Skip to content

Commit dbcd242

Browse files
authored
Updated phantomjs render script to take full height screenshots
1 parent 28ff8a6 commit dbcd242

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

tools/phantomjs/render.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,14 @@
5656

5757
if (panelsRendered || totalWaitMs > timeoutMs) {
5858
var bb = page.evaluate(function () {
59-
return document.getElementsByClassName("main-view")[0].getBoundingClientRect();
59+
return document.getElementsByClassName("dashboard-container")[0].getBoundingClientRect();
6060
});
61+
62+
// reset viewport to render full page
63+
page.viewportSize = {
64+
width: bb.width,
65+
height: bb.height
66+
};
6167

6268
page.clipRect = {
6369
top: bb.top,

0 commit comments

Comments
 (0)