When anchors jump why do they not account for Sonfluence's navigation/UI?

Benji Greig September 7, 2020

When using anchors in a page they never take the user to anchor in question because the standard behaviour is to scroll to the anchor at the top of the viewport which is covered by Confluence's UI. This makes anchors less useful for navigating confluence pages.

 

How to recreate:

  1. Create and anchor in a long page.
  2. Further down the document (which must be longer than the current viewport) create a link back to that anchor.
  3. Update or save the page.
  4. Scroll to the link you wish to test and click.
  5. The page will scroll to the anchor but more than likely it will be hidden under the navigation/UI of confluence.

 

Suggestion(s)

If the native behaviour does not work (which it doesn't seem to) then confluence needs to augment that behaviour to scroll to a point where the selected anchor is visible and accounts for the offset of the confluence UI.

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events