This commit is contained in:
ed
2020-05-06 00:11:36 +02:00
parent 5dcefab183
commit c4bea13be5
3 changed files with 17 additions and 34 deletions

View File

@@ -50,7 +50,7 @@ diff -NarU2 easymde-mod1/src/js/easymde.js easymde-edit/src/js/easymde.js
+ if (line_dom) {
+ var ret_y = 0;
+ var el = line_dom;
+ while ((el.getAttribute('class') + '').indexOf('editor-preview-side') < 0) {
+ while (el && (el.getAttribute('class') + '').indexOf('editor-preview-side') < 0) {
+ ret_y += el.offsetTop;
+ el = el.offsetParent;
+ }