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

This commit is contained in:
Victor Marin
2023-06-15 16:34:54 +03:00
committed by GitHub
parent 3413e1497e
commit f06ccbdf6e
@@ -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>
);
}