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
5cd73cea
Commit
5cd73cea
authored
Apr 05, 2014
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
small code cleanup in grafanaGraph
parent
347f6aed
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
2 deletions
+10
-2
src/app/directives/grafanaGraph.js
+9
-1
src/css/less/overrides.less
+1
-1
No files found.
src/app/directives/grafanaGraph.js
View file @
5cd73cea
...
...
@@ -45,7 +45,15 @@ function (angular, $, kbn, moment, _) {
function
setElementHeight
()
{
try
{
elem
.
css
({
height
:
scope
.
height
||
scope
.
panel
.
height
||
scope
.
row
.
height
});
var
height
=
scope
.
height
||
scope
.
panel
.
height
||
scope
.
row
.
height
;
height
=
height
.
replace
(
'px'
,
''
)
-
32
;
// subtract panel title bar
if
(
scope
.
panel
.
legend
.
show
)
{
height
=
height
-
35
;
// subtract one line legend
}
elem
.
css
(
'height'
,
height
+
'px'
);
return
true
;
}
catch
(
e
)
{
// IE throws errors sometimes
return
false
;
...
...
src/css/less/overrides.less
View file @
5cd73cea
...
...
@@ -77,7 +77,7 @@ code, pre {
}
.panel-content {
padding: 0px 10px
10px
10px;
padding: 0px 10px
0
10px;
}
.panel-title {
...
...
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