Skip to content

Commit 9f1450d

Browse files
committed
[show-hint addon] Fix incorrectly applied offset
Closes #7129
1 parent 98e86d1 commit 9f1450d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

addon/hint/show-hint.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@
290290
var height = box.bottom - box.top, spaceAbove = box.top - (pos.bottom - pos.top) - 2
291291
if (winH - box.top < spaceAbove) { // More room at the top
292292
if (height > spaceAbove) hints.style.height = (height = spaceAbove) + "px";
293-
hints.style.top = ((top = pos.top - height) + offsetTop) + "px";
293+
hints.style.top = ((top = pos.top - height) - offsetTop) + "px";
294294
below = false;
295295
} else {
296296
hints.style.height = (winH - box.top - 2) + "px";

0 commit comments

Comments
 (0)