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
dd494e64
Commit
dd494e64
authored
May 26, 2016
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(rendering): fixed issue with phantomjs panel rendering
parent
c9d6321f
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
7 deletions
+5
-7
public/app/features/panel/partials/soloPanel.html
+2
-6
vendor/phantomjs/render.js
+3
-1
No files found.
public/app/features/panel/partials/soloPanel.html
View file @
dd494e64
<div
class=
"main"
>
<div
class=
"panel nospace"
ng-if=
"panel"
style=
"width: 100%"
>
<div
class=
"row-fluid"
>
<div
class=
"span12"
>
<div
class=
"panel nospace"
ng-if=
"panel"
style=
"width: 100%"
>
<plugin-component
type=
"panel"
>
<plugin-component
type=
"panel"
>
</plugin-component>
</plugin-component>
</div>
</div>
</div>
</div>
<div
class=
"clearfix"
></div>
vendor/phantomjs/render.js
View file @
dd494e64
...
@@ -39,7 +39,8 @@
...
@@ -39,7 +39,8 @@
var
canvas
=
page
.
evaluate
(
function
()
{
var
canvas
=
page
.
evaluate
(
function
()
{
if
(
!
window
.
angular
)
{
return
false
;
}
if
(
!
window
.
angular
)
{
return
false
;
}
var
body
=
window
.
angular
.
element
(
document
.
body
);
var
body
=
window
.
angular
.
element
(
document
.
body
);
if
(
!
body
.
scope
)
{
return
false
;
}
if
(
!
body
.
injector
)
{
return
false
;
}
if
(
!
body
.
injector
())
{
return
false
;
}
var
rootScope
=
body
.
injector
().
get
(
'$rootScope'
);
var
rootScope
=
body
.
injector
().
get
(
'$rootScope'
);
if
(
!
rootScope
)
{
return
false
;}
if
(
!
rootScope
)
{
return
false
;}
...
@@ -59,6 +60,7 @@
...
@@ -59,6 +60,7 @@
width
:
bb
.
width
,
width
:
bb
.
width
,
height
:
bb
.
height
height
:
bb
.
height
};
};
page
.
render
(
params
.
png
);
page
.
render
(
params
.
png
);
phantom
.
exit
();
phantom
.
exit
();
}
}
...
...
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