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
f84534ad
Commit
f84534ad
authored
May 08, 2018
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert "Add baron scrollbar to a node managed by gafana (#11850)"
This reverts commit
34133671
.
parent
4b61c7cd
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
docs/sources/plugins/developing/panels.md
+2
-0
public/app/features/panel/panel_directive.ts
+2
-4
No files found.
docs/sources/plugins/developing/panels.md
View file @
f84534ad
...
...
@@ -25,6 +25,8 @@ export class MyPanelCtrl extends PanelCtrl {
...
```
In this case, make sure the template has a single
`<div>...</div>`
root. The plugin loader will modifiy that element adding a scrollbar.
### Examples
...
...
public/app/features/panel/panel_directive.ts
View file @
f84534ad
...
...
@@ -21,9 +21,7 @@ var panelTemplate = `
</div>
<div class="panel-content">
<div class="panel-height-helper">
<div><ng-transclude ></ng-transclude></div>
</div>
<ng-transclude class="panel-height-helper"></ng-transclude>
</div>
</div>
...
...
@@ -115,7 +113,7 @@ module.directive('grafanaPanel', function($rootScope, $document, $timeout) {
`
;
let
scrollRoot
=
panelContent
;
let
scroller
=
panelContent
.
find
(
':first'
);
let
scroller
=
panelContent
.
find
(
':first'
)
.
find
(
':first'
)
;
scrollRoot
.
addClass
(
scrollRootClass
);
$
(
scrollBarHTML
).
appendTo
(
scrollRoot
);
...
...
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