mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-15 10:16:12 +01:00
fix: text area height calculation in chats
This commit is contained in:
@@ -200,7 +200,7 @@ define('forum/chats', [
|
||||
textarea.on('input', function () {
|
||||
const isAtBottom = messages.isAtBottom(parent.find('.chat-content'));
|
||||
textarea.css({ height: 0 });
|
||||
textarea.css({ height: textarea.prop('scrollHeight') + 'px' });
|
||||
textarea.css({ height: messages.calcAutoTextAreaHeight(textarea) + 'px' });
|
||||
if (isAtBottom) {
|
||||
messages.scrollToBottom(parent.find('.chat-content'));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user