Skip to content

Commit 529b603

Browse files
committed
fix for quick edit scrolling
1 parent 43157bd commit 529b603

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

indigo_app/static/javascript/indigo/views/document_editor.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,12 @@
9696

9797
if (element && this.confirmAndDiscardChanges()) {
9898
this.editXmlElement(element);
99+
100+
this.contentPane.querySelector('.quick-editing')?.classList.remove('quick-editing');
99101
htmlElement.classList.add('quick-editing');
102+
103+
// scroll it almost (but not quite) to the top
104+
htmlElement.style.scrollMarginTop = '10px';
100105
htmlElement.scrollIntoView({behavior: "smooth"});
101106
}
102107
},

0 commit comments

Comments
 (0)