Commit 9f1450da for codemirror.net

commit 9f1450da47dd6ce43bb54491415364782970fe98
Author: Marijn Haverbeke <marijn@haverbeke.berlin>
Date:   Sun Aug 10 10:22:41 2025 +0200

    [show-hint addon] Fix incorrectly applied offset

    Closes https://github.com/codemirror/codemirror5/pull/7129

diff --git a/addon/hint/show-hint.js b/addon/hint/show-hint.js
index aaf1f643..eb448db7 100644
--- a/addon/hint/show-hint.js
+++ b/addon/hint/show-hint.js
@@ -290,7 +290,7 @@
       var height = box.bottom - box.top, spaceAbove = box.top - (pos.bottom - pos.top) - 2
       if (winH - box.top < spaceAbove) { // More room at the top
         if (height > spaceAbove) hints.style.height = (height = spaceAbove) + "px";
-        hints.style.top = ((top = pos.top - height) + offsetTop) + "px";
+        hints.style.top = ((top = pos.top - height) - offsetTop) + "px";
         below = false;
       } else {
         hints.style.height = (winH - box.top - 2) + "px";