summaryrefslogtreecommitdiff
path: root/public
diff options
context:
space:
mode:
authorCheng-Han, Wu2016-02-15 19:16:48 -0600
committerCheng-Han, Wu2016-02-15 19:16:48 -0600
commit26c40dca2d93a75db00232752cb16fc2972ec1d4 (patch)
tree9bb1b7a74d7ed5b755c4f42a2ae1dc5982fd7283 /public
parent880f6bcf0266578c4e8e16d909c18af0449943cc (diff)
Fixed checkCursorTag element not valid
Diffstat (limited to 'public')
-rw-r--r--public/js/index.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/public/js/index.js b/public/js/index.js
index 22aef5b7..5773a001 100644
--- a/public/js/index.js
+++ b/public/js/index.js
@@ -1781,7 +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;
+ top -= ele.closest('.CodeMirror-sizer > *').position().top;
var offsetLeft = -3;
var offsetTop = defaultTextHeight;
var statusBarHeight = 0;