Przeglądaj źródła

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

Torkel Ödegaard 9 lat temu
rodzic
commit
b85b5e00d4
1 zmienionych plików z 2 dodań i 1 usunięć
  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);
   }