An issue observed when editing a tall textarea (>height of the viewport) is that the scroll position of the window changes during the period when the height is set to 'auto'.
One solution is to cache the scroll position of the window then restore it after the textarea height has been set, changing the update function:
An issue observed when editing a tall textarea (>height of the viewport) is that the scroll position of the window changes during the period when the height is set to 'auto'.
One solution is to cache the scroll position of the window then restore it after the textarea height has been set, changing the update function: