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