mirror of
https://github.com/grafana/grafana.git
synced 2024-11-21 08:34:25 -06:00
Update render.js
This commit is contained in:
parent
dbcd242b09
commit
ba4d5ddaaa
@ -56,7 +56,11 @@
|
||||
|
||||
if (panelsRendered || totalWaitMs > timeoutMs) {
|
||||
var bb = page.evaluate(function () {
|
||||
return document.getElementsByClassName("dashboard-container")[0].getBoundingClientRect();
|
||||
var container = document.getElementsByClassName("dashboard-container")
|
||||
if (container.length == 0) {
|
||||
container = document.getElementsByClassName("panel-container")
|
||||
}
|
||||
return container[0].getBoundingClientRect();
|
||||
});
|
||||
|
||||
// reset viewport to render full page
|
||||
|
Loading…
Reference in New Issue
Block a user