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
2f3d1ec2
Commit
2f3d1ec2
authored
Feb 08, 2016
by
bergquist
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'graph_legend_height'
parents
edebdb16
73bed388
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
2 deletions
+11
-2
public/app/plugins/panel/graph/legend.js
+8
-0
public/less/panel_graph.less
+3
-2
No files found.
public/app/plugins/panel/graph/legend.js
View file @
2f3d1ec2
...
...
@@ -90,6 +90,14 @@ function (angular, _, $) {
}
function
render
()
{
if
(
panel
.
legend
.
rightSide
)
{
var
panelheight
=
scope
.
ctrl
.
height
||
scope
.
ctrl
.
panel
.
height
||
scope
.
ctrl
.
row
.
height
;
$container
.
css
(
"height"
,
panelheight
);
$container
.
toggleClass
(
'graph-legend-fixed-height'
,
true
);
}
else
{
$container
.
css
(
"height"
,
""
);
}
if
(
firstRender
)
{
elem
.
append
(
$container
);
$container
.
on
(
'click'
,
'.graph-legend-icon'
,
openColorSelector
);
...
...
public/less/panel_graph.less
View file @
2f3d1ec2
...
...
@@ -60,7 +60,6 @@
}
.graph-legend-table {
display: table;
width: 100%;
margin: 0;
...
...
@@ -272,4 +271,6 @@
font-size: 12px;
}
.graph-legend-fixed-height {
overflow-y: scroll;
}
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