Panels: Fixed size issue with panels when existing panel edit mode (#22912)

This commit is contained in:
Torkel Ödegaard 2020-03-20 11:49:54 +01:00 committed by GitHub
parent d16211b782
commit 8e131384e3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -74,10 +74,12 @@ export class DashboardPanelUnconnected extends PureComponent<Props, State> {
};
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 (
<AutoSizer>
<AutoSizer style={autoSizerStyle}>
{({ width, height }) => {
if (width === 0) {
return null;