Ver código fonte

Fix to graph panel, and width=0 bug

Torkel Ödegaard 10 anos atrás
pai
commit
48b25bc327
1 arquivos alterados com 1 adições e 2 exclusões
  1. 1 2
      public/app/panels/graph/graph.js

+ 1 - 2
public/app/panels/graph/graph.js

@@ -112,7 +112,7 @@ function (angular, $, kbn, moment, _, GraphTooltip) {
           }
           }
 
 
           if (elem.width() === 0) {
           if (elem.width() === 0) {
-            return;
+            return true;
           }
           }
         }
         }
 
 
@@ -277,7 +277,6 @@ function (angular, $, kbn, moment, _, GraphTooltip) {
           if (legendSideLastValue !== null && panel.legend.rightSide !== legendSideLastValue) {
           if (legendSideLastValue !== null && panel.legend.rightSide !== legendSideLastValue) {
             return true;
             return true;
           }
           }
-          return false;
         }
         }
 
 
         function addTimeAxis(options) {
         function addTimeAxis(options) {