Commit 8e131384 by Torkel Ödegaard Committed by GitHub

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

parent d16211b7
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment