Update to handle on view have smaller scrollHeight than editor's shouldn't syncScrollToView after changes

This commit is contained in:
Cheng-Han, Wu 2016-06-21 21:48:02 +08:00
parent 3454819522
commit 65b91e0b66
1 changed files with 1 additions and 1 deletions

View File

@ -2781,7 +2781,7 @@ editor.on('changes', function (cm, changes) {
windowResize();
}
checkEditorScrollbar();
if (editorHasFocus()) {
if (ui.area.codemirrorScroll[0].scrollHeight > ui.area.view[0].scrollHeight && editorHasFocus()) {
postUpdateEvent = function () {
syncScrollToView();
postUpdateEvent = null;