Fix BarGaugePanel to not show unnecessary scrollbar when links are set (#69989)

pull/70162/head
Victor Marin 2 years ago committed by GitHub
parent 3413e1497e
commit f06ccbdf6e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      public/app/plugins/panel/bargauge/BarGaugePanel.tsx

@ -61,7 +61,9 @@ export class BarGaugePanel extends PureComponent<BarGaugePanelProps> {
if (hasLinks && getLinks) {
return (
<div style={{ width: '100%', display: orientation === VizOrientation.Vertical ? 'flex' : 'initial' }}>
<DataLinksContextMenu links={getLinks}>{(api) => this.renderComponent(valueProps, api)}</DataLinksContextMenu>
<DataLinksContextMenu style={{ height: '100%' }} links={getLinks}>
{(api) => this.renderComponent(valueProps, api)}
</DataLinksContextMenu>
</div>
);
}

Loading…
Cancel
Save