Skip to content

Commit

Permalink
Update to handle on view have smaller scrollHeight than editor's shou…
Browse files Browse the repository at this point in the history
…ldn't syncScrollToView after changes
  • Loading branch information
jackycute committed Jun 21, 2016
1 parent 3454819 commit 65b91e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion public/js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 65b91e0

Please sign in to comment.