Scroll to typing cursor to prevent weird skipping (#644)

This commit is contained in:
Andy Zhao 2018-08-01 10:10:49 -04:00 committed by Ben Halpern
parent 92e7e109f2
commit 2e0929f438

View file

@ -41,6 +41,7 @@ function initEditorResize() {
function resize() {
textarea.style.height = 'auto';
textarea.style.height = textarea.scrollHeight - 29 + 'px';
window.scrollTo(scrollLeft, scrollTop);
if (oldEditor) {
return;
}