Skip to content

Commit 3cfe8f1

Browse files
authored
Merge pull request #1098 from drgrice1/feedback-show-correct-popover-update-hotfix
Better method for updating the feedback popover position. (hotfix of #1097)
2 parents 73d6335 + 89cf8ea commit 3cfe8f1

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

htdocs/js/Feedback/feedback.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@
1414
// Render MathJax previews.
1515
if (window.MathJax) {
1616
feedbackBtn.addEventListener('show.bs.popover', () => {
17-
MathJax.startup.promise = MathJax.startup.promise.then(() => MathJax.typesetPromise(['.popover-body']));
17+
MathJax.startup.promise = MathJax.startup.promise.then(() =>
18+
MathJax.typesetPromise(['.popover-body']).then(() => feedbackPopover.update())
19+
);
1820
});
1921
}
2022

@@ -70,7 +72,6 @@
7072
if (feedbackBtn.dataset.showCorrectOnly) {
7173
setTimeout(() => {
7274
feedbackBtn.click();
73-
setTimeout(() => feedbackPopover.update(), 100);
7475
}, 0);
7576
}
7677
};

0 commit comments

Comments
 (0)