Преглед изворни кода

fix(graph panel): fix for graph panel alignment when legend is in table mode, fixes #4772

Torkel Ödegaard пре 9 година
родитељ
комит
45dd9c5795
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      public/app/plugins/panel/graph/graph.js

+ 1 - 1
public/app/plugins/panel/graph/graph.js

@@ -73,7 +73,7 @@ function (angular, $, moment, _, kbn, GraphTooltip) {
             var legendSeries = _.filter(data, function(series) {
               return series.hideFromLegend(panel.legend) === false;
             });
-            var total = 23 + (22 * legendSeries.length);
+            var total = 23 + (21 * legendSeries.length);
             return Math.min(total, Math.floor(panelHeight/2));
           } else {
             return 26;