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
9c0da733
Commit
9c0da733
authored
Feb 08, 2016
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of github.com:grafana/grafana
parents
de90ad89
2f3d1ec2
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
3 deletions
+12
-3
public/app/plugins/panel/graph/axisEditor.html
+1
-1
public/app/plugins/panel/graph/legend.js
+8
-0
public/less/panel_graph.less
+3
-2
No files found.
public/app/plugins/panel/graph/axisEditor.html
View file @
9c0da733
...
...
@@ -184,7 +184,7 @@
<li
ng-if=
"panel.legend.rightSide"
class=
"tight-form-item"
>
Side width
</li>
<li
ng-if=
"panel.legend.rightSide"
style=
"width: 105px"
>
<li
ng-if=
"
ctrl.
panel.legend.rightSide"
style=
"width: 105px"
>
<input
type=
"number"
class=
"input-small tight-form-input"
placeholder=
"250"
bs-tooltip=
"'Set a min-width for the legend side table/block'"
data-placement=
"right"
ng-model=
"ctrl.panel.legend.sideWidth"
ng-change=
"ctrl.render()"
ng-model-onblur
>
</li>
...
...
public/app/plugins/panel/graph/legend.js
View file @
9c0da733
...
...
@@ -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 @
9c0da733
...
...
@@ -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