Quellcode durchsuchen

small fix for png width error when resize in edit mode / fullscreen mode

Torkel Ödegaard vor 12 Jahren
Ursprung
Commit
73c5883f0d
1 geänderte Dateien mit 4 neuen und 0 gelöschten Zeilen
  1. 4 0
      src/app/directives/grafanaGraph.js

+ 4 - 0
src/app/directives/grafanaGraph.js

@@ -59,6 +59,10 @@ function (angular, $, kbn, moment, _) {
         function render_panel() {
           if (!data) { return; }
 
+          if ($rootScope.fullscreen && !scope.fullscreen) {
+            return;
+          }
+
           if (!setElementHeight()) { return; }
 
           if (_.isString(data)) {