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
1540e95b
Commit
1540e95b
authored
Jan 06, 2014
by
Torkel Odegaard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
improved height of graph in edit mode (adjusted to document height)
parent
20660514
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
src/app/panels/graphite/editor.html
+0
-2
src/app/panels/graphite/module.js
+3
-1
No files found.
src/app/panels/graphite/editor.html
View file @
1540e95b
...
@@ -116,6 +116,5 @@
...
@@ -116,6 +116,5 @@
</div>
</div>
<div
class=
"editor-row"
style=
"margin-top: 20px"
ng-show=
"editor.index == 1"
>
<div
class=
"editor-row"
style=
"margin-top: 20px"
ng-show=
"editor.index == 1"
>
<button
class=
"btn pull-right"
ng-click=
"toggleFullscreen()"
>
Close
</button>
<button
class=
"btn btn-success pull-right"
ng-click=
"add_target(panel.target)"
>
Add target
</button>
<button
class=
"btn btn-success pull-right"
ng-click=
"add_target(panel.target)"
>
Add target
</button>
</div>
</div>
\ No newline at end of file
src/app/panels/graphite/module.js
View file @
1540e95b
...
@@ -371,9 +371,11 @@ function (angular, app, $, _, kbn, moment, timeSeries) {
...
@@ -371,9 +371,11 @@ function (angular, app, $, _, kbn, moment, timeSeries) {
$scope
.
enterFullscreenMode
=
function
(
options
)
{
$scope
.
enterFullscreenMode
=
function
(
options
)
{
var
docHeight
=
$
(
window
).
height
();
var
docHeight
=
$
(
window
).
height
();
var
editHeight
=
Math
.
floor
(
docHeight
*
0.3
);
var
fullscreenHeight
=
Math
.
floor
(
docHeight
*
0.7
);
var
oldTimeRange
=
$scope
.
range
;
var
oldTimeRange
=
$scope
.
range
;
$scope
.
height
=
options
.
edit
?
200
:
Math
.
floor
(
docHeight
*
0.7
)
;
$scope
.
height
=
options
.
edit
?
editHeight
:
fullscreenHeight
;
$scope
.
editMode
=
options
.
edit
;
$scope
.
editMode
=
options
.
edit
;
if
(
!
$scope
.
fullscreen
)
{
if
(
!
$scope
.
fullscreen
)
{
...
...
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