Another bug I noticed is that in the viewer I use a custom handler for users clicking on links. When using equation references, the viewer calls (effectively)
elem = document.getElementById(id)
elem.scrollIntoView()
This does not scroll properly, it seems to scroll so that the bottom of the svg tag containing the element with the given id is at the top of the screen, which means the element is hidden. To workaround it, I am instead scrolling to the parent of the svg tag, which works ok as long as there are not too many equations in that block.
I have no idea why scrollIntoView() misbehaves, would you happen to know why?
|