mirror of
https://github.com/grafana/grafana.git
synced 2025-02-11 08:05:43 -06:00
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:
parent
25ec7b5b02
commit
8c04eb272d
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user