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

Fixed issue with react panel dimensions
This commit is contained in:
Torkel Ödegaard 2019-02-13 17:17:19 +01:00 committed by GitHub
commit 4c9dba9152
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -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}
/>

View File

@ -1,6 +1,6 @@
export interface GrafanaVariables {
panelHorizontalPadding: number;
panelVerticalPadding: number;
panelhorizontalpadding: number;
panelverticalpadding: number;
}
declare const variables: GrafanaVariables;