diff options
Diffstat (limited to 'public')
-rw-r--r-- | public/js/index.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/public/js/index.js b/public/js/index.js index ad77e0d3..1150f7ae 100644 --- a/public/js/index.js +++ b/public/js/index.js @@ -1781,6 +1781,7 @@ function checkCursorTag(coord, ele) { buildMapInner(); var left = coord.left; var top = lineHeightMap[cursor.line] * defaultTextHeight; //coord.top; + top -= dropdown.closest('.CodeMirror-sizer > *').position().top; var offsetLeft = -3; var offsetTop = defaultTextHeight; var statusBarHeight = 0; @@ -2354,6 +2355,7 @@ function checkCursorMenu() { buildMapInner(); var left = coord.left; var top = lineHeightMap[cursor.line] * defaultTextHeight; //coord.top; + top -= dropdown.closest('.CodeMirror-sizer > *').position().top; var offsetLeft = 0; var offsetTop = defaultTextHeight; var statusBarHeight = 0; |