-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Clicking on ref link leads to wrong location #27
Comments
Yes, I have noticed that as well. It's actually because of the main topbar which has a white background and it's almost the same height as the title div of the directive. |
Is there any way to fix it you can think of? |
@najuzilu would it help to wrap the whole |
I think the easiest way might be to control the scroll behaviour using javascript and provide a bit of an offset to the location scrolled. |
I have a working solution for same-file targets, but I need to account for targets leading to different locations. I decided to go with JS and animate the scroll. How does that sound @AakashGfude? |
sounds good @najuzilu . I guess it will be a more generic solution. |
Maybe "wrong location" is an exaggeration, but what I mean is that if you click on a link that says "Theorem 1" in Chrome, you are directed to the theorem body, while the header "Theorem 1" is not visible --- it's off the top of the screen.
Hence it's not clear that you have been directed to the right place unless you scroll up.
The text was updated successfully, but these errors were encountered: