Browse Source

Note autoscroll to opened segment

Vijayakrishnan 3 years ago
parent
commit
54fe36f5ad
1 changed files with 5 additions and 0 deletions
  1. 5 0
      resources/views/app/patient/note/dashboard_script.blade.php

+ 5 - 0
resources/views/app/patient/note/dashboard_script.blade.php

@@ -211,6 +211,11 @@
                         else {
                             $('.note-section.edit').removeClass('edit');
                             editParent.addClass('edit');
+                            editParent[0].scrollIntoView({
+                                behavior: 'auto',
+                                block: "center",
+                                inline: "center"
+                            });
                             if(editParent.find('[autofocus]').length) {
                                 editParent.find('[autofocus]').first().focus();
                             }