Update to handle on view have smaller scrollHeight than editor's shouldn't syncScrollToView after changes
This commit is contained in:
parent
3454819522
commit
65b91e0b66
1 changed files with 1 additions and 1 deletions
|
@ -2781,7 +2781,7 @@ editor.on('changes', function (cm, changes) {
|
||||||
windowResize();
|
windowResize();
|
||||||
}
|
}
|
||||||
checkEditorScrollbar();
|
checkEditorScrollbar();
|
||||||
if (editorHasFocus()) {
|
if (ui.area.codemirrorScroll[0].scrollHeight > ui.area.view[0].scrollHeight && editorHasFocus()) {
|
||||||
postUpdateEvent = function () {
|
postUpdateEvent = function () {
|
||||||
syncScrollToView();
|
syncScrollToView();
|
||||||
postUpdateEvent = null;
|
postUpdateEvent = null;
|
||||||
|
|
Loading…
Reference in a new issue