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
06622088
Commit
06622088
authored
Nov 16, 2017
by
Alexander Zobnin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dashlist: fix panel resizing
parent
84b277d5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
1 deletions
+25
-1
public/app/plugins/panel/dashlist/module.ts
+25
-1
No files found.
public/app/plugins/panel/dashlist/module.ts
View file @
06622088
...
...
@@ -32,6 +32,7 @@ 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
.
groups
=
[
...
...
@@ -58,6 +59,8 @@ class DashListCtrl extends PanelCtrl {
}
delete
this
.
panel
.
mode
;
}
console
.
log
(
this
);
}
onInitEditMode
()
{
...
...
@@ -66,6 +69,24 @@ 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
=
()
=>
{
panelContentElem
.
height
(
ctrl
.
height
);
};
}
onRefresh
()
{
var
promises
=
[];
...
...
@@ -74,7 +95,10 @@ class DashListCtrl extends PanelCtrl {
promises
.
push
(
this
.
getSearch
());
return
Promise
.
all
(
promises
)
.
then
(
this
.
renderingCompleted
.
bind
(
this
));
.
then
(()
=>
{
this
.
setPanelHeight
();
return
this
.
renderingCompleted
();
});
}
getSearch
()
{
...
...
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