Updated resizeView, add or update user cursors to get proper view

This commit is contained in:
Wu Cheng-Han 2015-09-25 18:30:44 +08:00
parent a879b5b5fd
commit fb8ead594a

View file

@ -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);
}