Skip to content

Commit faeda25

Browse files
committed
Better tooltip positioning
1 parent be13bf6 commit faeda25

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

media/explain/graphUtils.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,7 @@ export function getTooltipPosition(node, container, tooltipBox) {
6262
}
6363

6464
if (top < MIN_DISTANCE_TO_VIEWPORT) {
65-
top =
66-
y + containerRect.top + node.renderedOuterHeight() / 2 + TOOLTIP_OFFSET;
65+
top = y + containerRect.top + node.renderedOuterHeight() / 2;
6766
}
6867

6968
return { left, top };

0 commit comments

Comments
 (0)