Explorar o código

fix(panel): fixed issue with fullscreen panel view and switching to another dashboard, fixes #5163

Torkel Ödegaard %!s(int64=9) %!d(string=hai) anos
pai
achega
71d62012e1
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      public/app/features/dashboard/rowCtrl.js

+ 2 - 1
public/app/features/dashboard/rowCtrl.js

@@ -142,9 +142,10 @@ function (angular, _, config) {
   });
   });
 
 
   module.directive('panelWidth', function() {
   module.directive('panelWidth', function() {
-    var fullscreen = false;
 
 
     return function(scope, element) {
     return function(scope, element) {
+      var fullscreen = false;
+
       function updateWidth() {
       function updateWidth() {
         if (!fullscreen) {
         if (!fullscreen) {
           element[0].style.width = ((scope.panel.span / 1.2) * 10) + '%';
           element[0].style.width = ((scope.panel.span / 1.2) * 10) + '%';