Commit 4c9dba91 by Torkel Ödegaard Committed by GitHub

Merge pull request #15423 from grafana/fixed-react-panels-dimensions

Fixed issue with react panel dimensions
parents c243e789 ef9e74fa
......@@ -125,8 +125,8 @@ export class PanelChrome extends PureComponent<Props, State> {
panelData={panelData}
timeRange={timeRange}
options={panel.getOptions(plugin.exports.PanelDefaults)}
width={width - 2 * variables.panelHorizontalPadding}
height={height - PANEL_HEADER_HEIGHT - variables.panelVerticalPadding}
width={width - 2 * variables.panelhorizontalpadding}
height={height - PANEL_HEADER_HEIGHT - variables.panelverticalpadding}
renderCounter={renderCounter}
onInterpolate={this.onInterpolate}
/>
......
export interface GrafanaVariables {
panelHorizontalPadding: number;
panelVerticalPadding: number;
panelhorizontalpadding: number;
panelverticalpadding: number;
}
declare const variables: GrafanaVariables;
......
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