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
0053bee8
Unverified
Commit
0053bee8
authored
Nov 19, 2018
by
Torkel Ödegaard
Committed by
GitHub
Nov 19, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #14121 from grafana/panel-size-in-edit-mode-fix
fixed issue with panel size when going into edit mode
parents
862815d1
d81d2f00
Show 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 @
0053bee8
...
...
@@ -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 @
0053bee8
...
...
@@ -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