diff options
author | Wu Cheng-Han | 2015-09-25 18:30:44 +0800 |
---|---|---|
committer | Wu Cheng-Han | 2015-09-25 18:30:44 +0800 |
commit | fb8ead594a06e84db9dcf214742aa9a0951608b5 (patch) | |
tree | 212af25e0d1d4db65fe06ceb8d22828f85acc654 /public | |
parent | a879b5b5fda434e7581fd3efa4515caab45abf7b (diff) |
Updated resizeView, add or update user cursors to get proper view
Diffstat (limited to '')
-rw-r--r-- | public/js/index.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/public/js/index.js b/public/js/index.js index b3fc372f..62d17600 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); } |