From 8e131384e34f08ce7e1807e766cc918dc8b4036f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torkel=20=C3=96degaard?= Date: Fri, 20 Mar 2020 11:49:54 +0100 Subject: [PATCH] Panels: Fixed size issue with panels when existing panel edit mode (#22912) --- public/app/features/dashboard/dashgrid/DashboardPanel.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/public/app/features/dashboard/dashgrid/DashboardPanel.tsx b/public/app/features/dashboard/dashgrid/DashboardPanel.tsx index 68d7852ead0..5ed258cde57 100644 --- a/public/app/features/dashboard/dashgrid/DashboardPanel.tsx +++ b/public/app/features/dashboard/dashgrid/DashboardPanel.tsx @@ -74,10 +74,12 @@ export class DashboardPanelUnconnected extends PureComponent { }; renderPanel(plugin: PanelPlugin) { - const { dashboard, panel, isFullscreen, isInView, isInEditMode, updateLocation } = this.props; + const { dashboard, panel, isFullscreen, isEditing, isInView, isInEditMode, updateLocation } = this.props; + + const autoSizerStyle = { height: isEditing ? '100%' : '' }; return ( - + {({ width, height }) => { if (width === 0) { return null;