mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Panels: Fixed size issue with panels when existing panel edit mode (#22912)
This commit is contained in:
parent
d16211b782
commit
8e131384e3
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user