Scroll to typing cursor to prevent weird skipping (#644)
This commit is contained in:
parent
92e7e109f2
commit
2e0929f438
1 changed files with 1 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue