forked from vhaudiquet/rhema-together
The auto-resize reset the textarea to auto before measuring, which collapsed it to one row for a frame. That resized the chat viewport, the browser clamped its scroll to the old bottom, and the next input scrolled back. Measure the content in a hidden copy instead. The composer reports a height change, and the room keeps the chat at the bottom only when the reader is already there. Typing and deleting lines now keeps the chat at the bottom without the jump.