From 68e2616319d84ae595925f59a736fe1e5104eb69 Mon Sep 17 00:00:00 2001
From: chris <kokosias@yahoo.gr>
Date: Wed, 19 Apr 2017 15:03:13 +0300
Subject: [PATCH] comment position fix

---
 app/components/SimpleEditor/panes/Comments/CommentBoxList.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app/components/SimpleEditor/panes/Comments/CommentBoxList.js b/app/components/SimpleEditor/panes/Comments/CommentBoxList.js
index d520a5d..2e50088 100644
--- a/app/components/SimpleEditor/panes/Comments/CommentBoxList.js
+++ b/app/components/SimpleEditor/panes/Comments/CommentBoxList.js
@@ -91,7 +91,7 @@ class CommentBoxList extends Component {
       if (entry.id === active) isActive = true
 
       // get position of annotation in editor
-      const annotationEl = document.querySelector('comment[data-id="' + entry.id + '"]')
+      const annotationEl = document.querySelector('span[data-id="' + entry.id + '"]')
 
       if (annotationEl) {
         annotationTop = (self.hasCssClass(annotationEl.offsetParent, 'sc-isolated-node'))
-- 
GitLab