diff --git a/src/static/index.js b/src/static/index.js index eb7e9d6..7a79c16 100644 --- a/src/static/index.js +++ b/src/static/index.js @@ -73,4 +73,16 @@ function exportReport() { calendarTextarea.value = 'Error während des Abrufs'; console.error(error); }); -} \ No newline at end of file +} + +function autoResize(textarea) { + textarea.style.height = "auto"; + textarea.style.height = textarea.scrollHeight + "px"; +} + +calendarTextarea.addEventListener('input', () => { + autoResize(calendarTextarea); +}); +untisTextarea.addEventListener('input', () => { + autoResize(untisTextarea); +}); \ No newline at end of file