summaryrefslogtreecommitdiff
path: root/public
diff options
context:
space:
mode:
authorWu Cheng-Han2015-09-25 18:30:44 +0800
committerWu Cheng-Han2015-09-25 18:30:44 +0800
commitfb8ead594a06e84db9dcf214742aa9a0951608b5 (patch)
tree212af25e0d1d4db65fe06ceb8d22828f85acc654 /public
parenta879b5b5fda434e7581fd3efa4515caab45abf7b (diff)
Updated resizeView, add or update user cursors to get proper view
Diffstat (limited to '')
-rw-r--r--public/js/index.js5
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);
}