Parcourir la source

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

Torkel Ödegaard il y a 9 ans
Parent
commit
b85b5e00d4
1 fichiers modifiés avec 2 ajouts et 1 suppressions
  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);
   }