summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCheng-Han, Wu2016-02-11 02:38:19 -0600
committerCheng-Han, Wu2016-02-11 02:38:19 -0600
commit176021ccd85630abbc3af4001f9a590d4277e584 (patch)
tree3ab47e803e588dd330d5bc97f00dc4aa242a7742
parent6700f033ab2c2e6f5ab1293025d3485ecc37c321 (diff)
Fixed cursor-tag and cursor-menu might not on correct position
Diffstat (limited to '')
-rw-r--r--public/js/index.js2
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;