Skip to content

Commit

Permalink
Setting the context element as the boundary when available for the fl…
Browse files Browse the repository at this point in the history
…amegraph tooltip (#3198)
  • Loading branch information
manojVivek authored May 30, 2023
1 parent b9e8643 commit dd017fe
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions ui/packages/shared/profile/src/GraphTooltip/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -426,6 +426,7 @@ const GraphTooltip = ({
options: {
tether: false,
altAxis: true,
boundary: contextElement ?? undefined,
},
},
{
Expand All @@ -434,6 +435,12 @@ const GraphTooltip = ({
offset: [30, 30],
},
},
{
name: 'flip',
options: {
boundary: contextElement ?? undefined,
},
},
],
}
);
Expand Down

0 comments on commit dd017fe

Please sign in to comment.