From fb8ead594a06e84db9dcf214742aa9a0951608b5 Mon Sep 17 00:00:00 2001 From: Wu Cheng-Han Date: Fri, 25 Sep 2015 18:30:44 +0800 Subject: [PATCH] Updated resizeView, add or update user cursors to get proper view --- public/js/index.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/public/js/index.js b/public/js/index.js index b3fc372..62d1760 100644 --- a/public/js/index.js +++ b/public/js/index.js @@ -470,6 +470,11 @@ function windowResizeInner() { clearMap(); syncScrollToView(); editor.setOption('viewportMargin', viewportMargin); + //add or update user cursors + for (var i = 0; i < onlineUsers.length; i++) { + if (onlineUsers[i].id != personalInfo.id) + buildCursor(onlineUsers[i]); + } updateScrollspy(); }, 100); }