mirror of
https://github.com/zulip/zulip.git
synced 2025-11-12 09:58:06 +00:00
Because the compose-box resize logic is tied to the size of the textarea, it's possible when resizing in preview mode that the state of the compose box is not properly tracked. That's because the height logic in `autosize_message_content` assumes a visible textarea. However, because both the textarea and the message preview area occupy the same named grid area (`message-content`), and because the preview area comes after the textarea in the DOM, when visible, the preview area will automatically cover (and be sized to) the textarea. And because the textarea remains observable in the DOM, the compose box will obey the same expansion logic in preview mode as it does in edit mode.
28 KiB
28 KiB