Linking to an anchor (created using the Anchor macro) on the same page works just fine.
However, when you link to that anchor from another page, it links to a location a few lines below where the anchor is located.
I.e. it correctly goes to the page, and to the correct location, and then immediately scrolls down a few lines. If the anchors is placed just above a header, it scrolls to the first paragraph below the header. If the anchor is placed just above a paragraph, it scrolls to the third line of the paragraph.
Has anyone else noticed this? Is there any solution (other than placing the anchor a few lines _above_ where you want it to link to)?
I have a similar issue. The anchor is at the top of the page. When one clicks on a link pointed to it further down in the document, The page scrolls up to about 4 lines below the Anchor position. One has to manually scroll the rest of the way up.
The only work around I have found is to add 3 blank lines between the top anchor and the table of contents macro. So, the full table of contents will totally show up when the below link is clicked.
Any thoughts on what would cause the link to not scroll completely up to the anchor location?
I have noticed this behavior too and I don't know why it happens. It can confuse users because they might not land where they expect.
I have seen if a web page is short, then the browser will stop at the end of the page, regardless of where the anchor is. This can result in the linked-to anchor appearing in the middle of the page instead of at the top as expected.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Actually, this is the correct (expected) behavior. A browser can't scroll any further than the end of the page. So if the target anchor is less than a screenful from the bottom of the page, then it will end up in the middle of the display window.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
We see similar behavior when linking from a draw.io figure to a place on the same place as the draw.io figure.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.