Просмотр исходного кода

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

Torkel Ödegaard 9 лет назад
Родитель
Сommit
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) {
             var legendSeries = _.filter(data, function(series) {
               return series.hideFromLegend(panel.legend) === false;
               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));
             return Math.min(total, Math.floor(panelHeight/2));
           } else {
           } else {
             return 26;
             return 26;