mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-01-01 21:30:30 +01:00
This commit is contained in:
@@ -65,7 +65,7 @@ define('forum/chats/messages', [
|
||||
// https://stackoverflow.com/questions/454202/creating-a-textarea-with-auto-resize
|
||||
const textarea = chatContentEl.find('[component="chat/input"]');
|
||||
const scrollHeight = textarea.prop('scrollHeight');
|
||||
textarea.css({ height: scrollHeight + 'px', 'overflow-y': 'hidden' });
|
||||
textarea.css({ height: scrollHeight + 'px' });
|
||||
textarea.on('input', function () {
|
||||
const isAtBottom = messages.isAtBottom(chatContentEl.find('.chat-content'));
|
||||
textarea.css({ height: 0 });
|
||||
|
||||
Reference in New Issue
Block a user