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
f91a833e
Commit
f91a833e
authored
Nov 16, 2016
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(panel): set initial transparency state at first link
parent
cbe8af96
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
public/app/features/panel/panel_directive.ts
+8
-2
No files found.
public/app/features/panel/panel_directive.ts
View file @
f91a833e
...
@@ -68,8 +68,8 @@ module.directive('grafanaPanel', function($rootScope) {
...
@@ -68,8 +68,8 @@ module.directive('grafanaPanel', function($rootScope) {
// the reason for handling these classes this way is for performance
// the reason for handling these classes this way is for performance
// limit the watchers on panels etc
// limit the watchers on panels etc
var
transparentLastState
;
var
transparentLastState
=
false
;
var
lastHasAlertRule
;
var
lastHasAlertRule
=
false
;
var
lastAlertState
;
var
lastAlertState
;
var
hasAlertRule
;
var
hasAlertRule
;
var
lastHeight
=
0
;
var
lastHeight
=
0
;
...
@@ -91,6 +91,12 @@ module.directive('grafanaPanel', function($rootScope) {
...
@@ -91,6 +91,12 @@ module.directive('grafanaPanel', function($rootScope) {
lastHeight
=
ctrl
.
containerHeight
;
lastHeight
=
ctrl
.
containerHeight
;
}
}
// set initial transparency
if
(
ctrl
.
panel
.
transparent
)
{
transparentLastState
=
true
;
panelContainer
.
addClass
(
'panel-transparent'
,
true
);
}
ctrl
.
events
.
on
(
'render'
,
()
=>
{
ctrl
.
events
.
on
(
'render'
,
()
=>
{
if
(
lastHeight
!==
ctrl
.
containerHeight
)
{
if
(
lastHeight
!==
ctrl
.
containerHeight
)
{
panelContainer
.
css
({
minHeight
:
ctrl
.
containerHeight
});
panelContainer
.
css
({
minHeight
:
ctrl
.
containerHeight
});
...
...
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