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
e89e64e9
Commit
e89e64e9
authored
Nov 16, 2017
by
Alexander Zobnin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dashlist: fix resizing after mode switching
parent
7d8b2cb0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
8 deletions
+3
-8
public/app/plugins/panel/dashlist/module.ts
+3
-8
No files found.
public/app/plugins/panel/dashlist/module.ts
View file @
e89e64e9
...
...
@@ -32,8 +32,10 @@ class DashListCtrl extends PanelCtrl {
}
this
.
events
.
on
(
'refresh'
,
this
.
onRefresh
.
bind
(
this
));
this
.
events
.
on
(
'panel-size-changed'
,
this
.
onPanelSizeChanged
.
bind
(
this
));
this
.
events
.
on
(
'init-edit-mode'
,
this
.
onInitEditMode
.
bind
(
this
));
this
.
events
.
on
(
'render'
,
this
.
setPanelHeight
.
bind
(
this
));
this
.
events
.
on
(
'panel-size-changed'
,
this
.
setPanelHeight
.
bind
(
this
));
this
.
events
.
on
(
'panel-change-view'
,
this
.
setPanelHeight
.
bind
(
this
));
this
.
groups
=
[
{
list
:
[],
show
:
false
,
header
:
"Starred dashboards"
,},
...
...
@@ -59,8 +61,6 @@ class DashListCtrl extends PanelCtrl {
}
delete
this
.
panel
.
mode
;
}
console
.
log
(
this
);
}
onInitEditMode
()
{
...
...
@@ -69,17 +69,12 @@ class DashListCtrl extends PanelCtrl {
this
.
addEditorTab
(
'Options'
,
'public/app/plugins/panel/dashlist/editor.html'
);
}
onPanelSizeChanged
()
{
this
.
setPanelHeight
();
}
setPanelHeight
()
{
this
.
$scope
.
setPanelHeight
();
}
link
(
scope
,
elem
,
attrs
,
ctrl
:
DashListCtrl
)
{
let
panelContentElem
=
elem
.
find
(
'.panel-content'
);
console
.
log
(
elem
,
panelContentElem
);
panelContentElem
.
height
(
ctrl
.
height
);
scope
.
setPanelHeight
=
()
=>
{
...
...
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