Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 35848da

Browse files
committed
unified hover: fix vertical positioning!
1 parent 226ff25 commit 35848da

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/fx/hover.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -979,7 +979,7 @@ function createHoverText(hoverData, opts, gd) {
979979
var canFit = txHeight <= outerHeight;
980980
if(canFit) {
981981
if(overflowTop) {
982-
ly = outerTop - tbb.top + 2 * HOVERTEXTPAD;
982+
ly = tbb.top - outerTop + 2 * HOVERTEXTPAD;
983983
} else if(overflowBottom) {
984984
ly = outerHeight - txHeight;
985985
}

0 commit comments

Comments
 (0)