Просмотр исходного кода

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

Torkel Ödegaard 9 лет назад
Родитель
Сommit
b85b5e00d4
1 измененных файлов с 2 добавлено и 1 удалено
  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);
   }