Skip to content

Commit

Permalink
Merge pull request grafana#11954 from grafana/11830-firefox-legend
Browse files Browse the repository at this point in the history
legend: fixes Firefox/baron scroll bug
  • Loading branch information
daniellee authored May 16, 2018
2 parents 574baa7 + 50026fa commit b086981
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions public/app/plugins/panel/graph/legend.ts
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,10 @@ module.directive('graphLegend', function(popoverSrv, $timeout) {
destroyScrollbar();
legendScrollbar = baron(scrollbarParams);
}

// #11830 - compensates for Firefox scrollbar calculation error in the baron framework
scroller[0].style.marginRight = '-' + (scroller[0].offsetWidth - scroller[0].clientWidth) + 'px';

legendScrollbar.scroll();
}

Expand Down

0 comments on commit b086981

Please sign in to comment.