Procházet zdrojové kódy

fix(): fixed panel resize and fullscreen panel height issue

Torkel Ödegaard před 9 roky
rodič
revize
b85b5e00d4
1 změnil soubory, kde provedl 2 přidání a 1 odebrání
  1. 2 1
      public/app/features/panel/panel_ctrl.ts

+ 2 - 1
public/app/features/panel/panel_ctrl.ts

@@ -45,7 +45,7 @@ export class PanelCtrl {
     }
 
     $scope.$on("refresh", () => this.refresh());
-    $scope.$on("render", () => this.calculatePanelHeight());
+    $scope.$on("render", () => this.render());
   }
 
   init() {
@@ -149,6 +149,7 @@ export class PanelCtrl {
       return;
     }
 
+    this.calculatePanelHeight();
     this.events.emit('render', payload);
   }