mirror of
https://github.com/grafana/grafana.git
synced 2025-08-01 09:21:47 +08:00
Revert "Add baron scrollbar to a node managed by gafana (#11850)"
This reverts commit 34133671b9bc33f4149ec1e309e28a80404e9ec8.
This commit is contained in:
@ -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
|
### Examples
|
||||||
|
@ -21,9 +21,7 @@ var panelTemplate = `
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="panel-content">
|
<div class="panel-content">
|
||||||
<div class="panel-height-helper">
|
<ng-transclude class="panel-height-helper"></ng-transclude>
|
||||||
<div><ng-transclude ></ng-transclude></div>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -115,7 +113,7 @@ module.directive('grafanaPanel', function($rootScope, $document, $timeout) {
|
|||||||
`;
|
`;
|
||||||
|
|
||||||
let scrollRoot = panelContent;
|
let scrollRoot = panelContent;
|
||||||
let scroller = panelContent.find(':first');
|
let scroller = panelContent.find(':first').find(':first');
|
||||||
|
|
||||||
scrollRoot.addClass(scrollRootClass);
|
scrollRoot.addClass(scrollRootClass);
|
||||||
$(scrollBarHTML).appendTo(scrollRoot);
|
$(scrollBarHTML).appendTo(scrollRoot);
|
||||||
|
Reference in New Issue
Block a user