浏览代码

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;