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
d81d2f00
Commit
d81d2f00
authored
Nov 19, 2018
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed issue with panel size when going into edit mode
parent
8130067f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
1 deletions
+14
-1
public/app/features/dashboard/panel_model.ts
+1
-1
public/app/features/panel/panel_directive.ts
+13
-0
No files found.
public/app/features/dashboard/panel_model.ts
View file @
d81d2f00
...
...
@@ -95,7 +95,7 @@ export class PanelModel {
setViewMode
(
fullscreen
:
boolean
,
isEditing
:
boolean
)
{
this
.
fullscreen
=
fullscreen
;
this
.
isEditing
=
isEditing
;
this
.
events
.
emit
(
'
panel-siz
e-changed'
);
this
.
events
.
emit
(
'
view-mod
e-changed'
);
}
updateGridPos
(
newPos
:
GridPos
)
{
...
...
public/app/features/panel/panel_directive.ts
View file @
d81d2f00
...
...
@@ -140,6 +140,19 @@ module.directive('grafanaPanel', ($rootScope, $document, $timeout) => {
});
});
ctrl
.
events
.
on
(
'view-mode-changed'
,
()
=>
{
// first wait one pass for dashboard fullscreen view mode to take effect (classses being applied)
setTimeout
(()
=>
{
// then recalc style
ctrl
.
calculatePanelHeight
();
// then wait another cycle (this might not be needed)
$timeout
(()
=>
{
ctrl
.
render
();
resizeScrollableContent
();
});
});
});
// set initial height
ctrl
.
calculatePanelHeight
();
...
...
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