Ver código fonte

Stick newly opened segment to near the top border of the viewport

Vijayakrishnan 3 anos atrás
pai
commit
c4239fb36f

+ 2 - 1
resources/views/app/patient/note/dashboard_script.blade.php

@@ -213,9 +213,10 @@
                             editParent.addClass('edit');
                             editParent[0].scrollIntoView({
                                 behavior: 'auto',
-                                block: "center",
+                                block: "start",
                                 inline: "center"
                             });
+                            $('html').scrollTop($('html').scrollTop() - 60);
                             if(editParent.find('[autofocus]').length) {
                                 editParent.find('[autofocus]').first().focus();
                             }