Vijayakrishnan 3 лет назад
Родитель
Сommit
e161a23f1e
1 измененных файлов с 8 добавлено и 0 удалено
  1. 8 0
      resources/views/app/patient/note/segment_script.blade.php

+ 8 - 0
resources/views/app/patient/note/segment_script.blade.php

@@ -239,6 +239,14 @@
 
         function init() {
 
+            $(document)
+                .off('input.auto-grow', '[visit-moe] form textarea')
+                .on('input.auto-grow', '[visit-moe] form textarea', function() {
+                    this.style.minHeight = "calc(1.5em + .5rem + 2px)";
+                    this.style.height = "calc(1.5em + .5rem + 2px)";
+                    this.style.height = (this.scrollHeight)+"px";
+                });
+
             let parent = $('.segments-list');
             initRTEs(parent);
             initSegmentMoes(parent);