AngularPanels: Fixes issue with some panels not rendering when going into edit mode due to no height (#30113)

This commit is contained in:
Torkel Ödegaard 2021-01-08 15:20:02 +01:00 committed by GitHub
parent 80130d1c6f
commit cbce1f93ca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -66,6 +66,8 @@ module.directive('grafanaPanel', ($rootScope, $document, $timeout) => {
ctrl.width = scope.$parent.$parent.size.width;
}
updateDimensionsFromParentScope();
// Pass PanelModel events down to angular controller event emitter
subs.add(
panel.events.subscribe(RefreshEvent, () => {

View File

@ -7,8 +7,6 @@ export class HeatmapDisplayEditorCtrl {
$scope.editor = this;
this.panelCtrl = $scope.ctrl;
this.panel = this.panelCtrl.panel;
this.panelCtrl.render();
}
}