Flamegraph: Fix vertical offset (#57618)

This commit is contained in:
Andrej Ocenas 2022-10-25 17:55:49 +02:00 committed by GitHub
parent 8788f7d2d8
commit 82d79780d8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -139,7 +139,7 @@ const FlameGraph = ({
if (barIndex !== -1 && !isNaN(levelIndex) && !isNaN(barIndex)) {
tooltipRef.current.style.left = e.clientX + 10 + 'px';
tooltipRef.current.style.top = e.clientY + 40 + 'px';
tooltipRef.current.style.top = e.clientY + 'px';
const bar = levels[levelIndex][barIndex];
const tooltipData = getTooltipData(valueField!, bar.label, bar.value, totalTicks);