Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nexpie-grafana-theme
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Registry
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kornkitt Poolsup
nexpie-grafana-theme
Commits
29f1c925
Unverified
Commit
29f1c925
authored
Oct 17, 2018
by
Torkel Ödegaard
Committed by
GitHub
Oct 17, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #13352 from amuraru/patch-2
Updated phantomjs render script to take full height screenshots
parents
176c8579
bd1f87ed
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
7 deletions
+10
-7
tools/phantomjs/render.js
+10
-7
No files found.
tools/phantomjs/render.js
View file @
29f1c925
...
...
@@ -50,19 +50,22 @@
function
checkIsReady
()
{
var
panelsRendered
=
page
.
evaluate
(
function
()
{
var
panelCount
=
document
.
querySelectorAll
(
'
.panel
'
).
length
;
var
panelCount
=
document
.
querySelectorAll
(
'
plugin-component
'
).
length
;
return
window
.
panelsRendered
>=
panelCount
;
});
if
(
panelsRendered
||
totalWaitMs
>
timeoutMs
)
{
var
bb
=
page
.
evaluate
(
function
()
{
return
document
.
getElementsByClassName
(
"main-view"
)[
0
].
getBoundingClientRect
();
var
container
=
document
.
getElementsByClassName
(
"dashboard-container"
)
if
(
container
.
length
==
0
)
{
container
=
document
.
getElementsByClassName
(
"panel-container"
)
}
return
container
[
0
].
getBoundingClientRect
();
});
page
.
clipRect
=
{
top
:
bb
.
top
,
left
:
bb
.
left
,
width
:
bb
.
width
,
// reset viewport to render full page
page
.
viewportSize
=
{
width
:
bb
.
width
,
height
:
bb
.
height
};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment