3
$\begingroup$

When I follow a link to an answer (e.g. my answer here), the page is scrolled to the correct position. But then MathJax renders all the formulas, thus shifting content around, at which point the scroll position is no longer correct.

Can you add some JavaScript to run after MathJax has formatted the LaTeX on the page, to correct the scroll position again?

$\endgroup$
3
  • $\begingroup$ This kind of things that may depend on your browser. What browser are you using, what version, under what operating system? $\endgroup$ May 20, 2012 at 17:19
  • $\begingroup$ Results reproducible in: Firefox 13, Waterfox 12, Opera 11.64 and Chrome 19.0.1084.46 on Windows 8 Consumer Preview x64. $\endgroup$
    – A T
    May 21, 2012 at 3:34
  • $\begingroup$ I can confirm that for FF10 on Ubuntu. $\endgroup$
    – Raphael Mod
    May 22, 2012 at 17:24

2 Answers 2

2
$\begingroup$

MathJax v2.0 added the ability to position to the location in the hash reference of the URL after MathJax finished processing the math, but it has some unwanted consequences for some pages, and so was off by default. MathJax v2.1 (in beta at the moment, scheduled for release within the next two weeks) should resolve those problems and so has this feature on by default. So if you are using the MathJax CDN with the mathjax/latest URL, you should start seeing your desired behavior shortly.

$\endgroup$
0
$\begingroup$

This seems to be fixed now, even though you have to wait until all maths on the site have been compiled before the position is reset.

$\endgroup$

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .