| 699 | 699 | const isFirefox = navigator.userAgent.toLowerCase().indexOf('firefox') > -1; |
| 700 | 700 | |
| 701 | 701 | /** |
| 702 | 702 | * Resizesthis makes the chat input textareatext area resize vertically to match itsthe text content, upsize to(limited aby maximumCSS heightat defined50% inwindow CSS.height) |
| 703 | | - * Preserves scroll position in Chrome. In Firefox, the textarea grows to cover the chat history. |
| 704 | 703 | */ |
| 705 | 704 | function autoFitSendTextArea() { |
| 706 | 705 | const originalScrollBottom = chatBlock.scrollHeight - (chatBlock.scrollTop + chatBlock.offsetHeight); |