From cbce1f93ca7f4a3e48afe3203b4f0be256643f95 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torkel=20=C3=96degaard?= Date: Fri, 8 Jan 2021 15:20:02 +0100 Subject: [PATCH] AngularPanels: Fixes issue with some panels not rendering when going into edit mode due to no height (#30113) --- public/app/features/panel/panel_directive.ts | 2 ++ public/app/plugins/panel/heatmap/display_editor.ts | 2 -- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/public/app/features/panel/panel_directive.ts b/public/app/features/panel/panel_directive.ts index 0a8d070a247..aed1b4b802b 100644 --- a/public/app/features/panel/panel_directive.ts +++ b/public/app/features/panel/panel_directive.ts @@ -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, () => { diff --git a/public/app/plugins/panel/heatmap/display_editor.ts b/public/app/plugins/panel/heatmap/display_editor.ts index 3dcfddfaeae..6ed7f7e8af5 100644 --- a/public/app/plugins/panel/heatmap/display_editor.ts +++ b/public/app/plugins/panel/heatmap/display_editor.ts @@ -7,8 +7,6 @@ export class HeatmapDisplayEditorCtrl { $scope.editor = this; this.panelCtrl = $scope.ctrl; this.panel = this.panelCtrl.panel; - - this.panelCtrl.render(); } }