From 26c40dca2d93a75db00232752cb16fc2972ec1d4 Mon Sep 17 00:00:00 2001 From: Cheng-Han, Wu Date: Mon, 15 Feb 2016 19:16:48 -0600 Subject: Fixed checkCursorTag element not valid --- public/js/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.2.3