mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-24 18:56:32 -05:00
Fixed cursor-tag and cursor-menu might not on correct position
This commit is contained in:
parent
6700f033ab
commit
176021ccd8
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue