mirror of
https://github.com/grafana/grafana.git
synced 2024-12-25 08:21:46 -06:00
Updated phantomjs render script to take full height screenshots
This commit is contained in:
parent
28ff8a6716
commit
dbcd242b09
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user