removing gemini scrollbar and replacing with perfect scrollbar, muuuch better

This commit is contained in:
Torkel Ödegaard
2017-11-23 11:12:32 +01:00
parent 856a0393ab
commit f18f1a1093
11 changed files with 286 additions and 278 deletions

View File

@@ -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();
}
});
}
};