Permalink
Browse files

Fix call to updateScrollBars to pass doc height

  • Loading branch information...
1 parent 7033793 commit b42a6e6abb83bfa2039d709375b6dcb0ab3f82bb @marijnh marijnh committed Dec 10, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/codemirror.js
View
@@ -217,7 +217,7 @@ window.CodeMirror = (function() {
}
regChange(cm, 0, doc.size);
clearCaches(cm);
- setTimeout(bind(updateScrollbars, cm.display), 100);
+ setTimeout(function(){updateScrollbars(cm.display, cm.view.doc.height);}, 100);
}
function keyMapChanged(cm) {

0 comments on commit b42a6e6

Please sign in to comment.