Commit 3735a1ac by Patric Kanngießer Committed by Torkel Ödegaard

remember scroll position (https://github.com/grafana/grafana/issues/7680) (#7728)

parent 125ee865
......@@ -65,7 +65,9 @@ function (angular, _, $) {
var el = $(e.currentTarget);
var index = getSeriesIndexForElement(el);
var seriesInfo = seriesList[index];
var scrollPosition = $($container.children('tbody')).scrollTop();
ctrl.toggleSeries(seriesInfo, e);
$($container.children('tbody')).scrollTop(scrollPosition);
}
function sortLegend(e) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment