Skip to content

Commit

Permalink
Fix DualBrush positioning in embedded panels
Browse files Browse the repository at this point in the history
  • Loading branch information
walterra committed Oct 11, 2024
1 parent 2c24dbd commit 26cd1a5
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,12 @@ export const DocumentCountChart: FC<DocumentCountChartProps> = (props) => {
<>
{isBrushVisible && (
<div className="aiopsHistogramBrushes" data-test-subj={'aiopsHistogramBrushes'}>
<div css={{ height: BADGE_HEIGHT }}>
{/**
* We need position:relative on this parent container of the BrushBadges,
* because of the absolute positioning of the BrushBadges. Without it, the
* BrushBadges would not be positioned correctly when used in embedded panels.
*/}
<div css={{ height: BADGE_HEIGHT, position: 'relative' }}>
<BrushBadge
label={
baselineBrush.label ??
Expand Down

0 comments on commit 26cd1a5

Please sign in to comment.