panel: add baron scroller to correct element

This resolves issue with alert list panel getting scrollbars
attached to incorrect element. Now the panel content are
rendered correctly and all content are displayed as
expected.
This commit is contained in:
Marcus Efraimsson 2018-04-11 17:38:53 +02:00
parent 25ec7b5b02
commit 8c04eb272d
No known key found for this signature in database
GPG Key ID: EBFE0FB04612DD4A

View File

@ -113,7 +113,8 @@ module.directive('grafanaPanel', function($rootScope, $document, $timeout) {
`;
let scrollRoot = panelContent;
let scroller = panelContent.find(':first-child').find(':first-child');
let scroller = panelContent.find(':first').find(':first');
scrollRoot.addClass(scrollRootClass);
$(scrollBarHTML).appendTo(scrollRoot);
scroller.addClass(scrollerClass);