Skip to content

Commit 156fe39

Browse files
committed
Scroll to top when showing the modal
1 parent c0410bf commit 156fe39

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

hoverxref/_static/js/hoverxref.js_t

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,7 @@ $(document).ready(function() {
163163
MicroModal.show('micromodal', {
164164
disableScroll: false,
165165
});
166+
$('#micromodal .modal__container').scrollTop(0);
166167
reLoadSphinxTabs();
167168
if (mathjax) {
168169
if (typeof MathJax !== 'undefined') {

0 commit comments

Comments
 (0)