mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
removing gemini scrollbar and replacing with perfect scrollbar, muuuch better
This commit is contained in:
@@ -102,9 +102,7 @@ module.directive('grafanaPanel', function($rootScope, $document) {
|
||||
// update scrollbar after mounting
|
||||
ctrl.events.on('component-did-mount', () => {
|
||||
if (ctrl.__proto__.constructor.scrollable) {
|
||||
panelScrollbar = new PerfectScrollbar(panelContent[0], {
|
||||
minScrollbarLength: 20
|
||||
});
|
||||
panelScrollbar = new PerfectScrollbar(panelContent[0]);
|
||||
}
|
||||
});
|
||||
|
||||
@@ -191,6 +189,10 @@ module.directive('grafanaPanel', function($rootScope, $document) {
|
||||
if (infoDrop) {
|
||||
infoDrop.destroy();
|
||||
}
|
||||
|
||||
if (panelScrollbar) {
|
||||
panelScrollbar.update();
|
||||
}
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user