Project

General

Profile

Actions

Bug #6071

closed

Scroll to anchorId hidden by the fixed KNB header

Added by ben leinfelder over 9 years ago. Updated about 9 years ago.

Status:
Closed
Priority:
High
Assignee:
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:
Bugzilla-Id:

Description

At one point the CSS correctly included padding for the anchors that get scrolled to, but it looks like the problem came back. In this example you can see that the <h2><a> is hidden by the header:
http://knb.ecoinformatics.org/m/#about/understanding-metadata

Actions #1

Updated by ben leinfelder over 9 years ago

  • Description updated (diff)
  • Assignee set to Lauren Walker
  • Priority changed from Normal to High
Actions #2

Updated by Lauren Walker about 9 years ago

  • Status changed from New to Closed

I vertically offset the anchors by the same height as the header so that they scroll to the correct place.

Actions #3

Updated by ben leinfelder about 9 years ago

  • Status changed from Closed to In Progress

I rearranged it to be "simpler" by moving the "top" property into a[name]. Unfortunately this shifts content around in the EML documentation.
See:
http://localhost:8080/metacatui/index.html#external//emlparser/docs/eml-2.1.1/eml-resource.html#i18nNonEmptyStringType

Would be nice if those docs scrolled correctly and did not get garbled in their overlays.

Actions #4

Updated by Lauren Walker about 9 years ago

  • Status changed from In Progress to Closed

I changed the markup in the EML documentation so that it will work with the fixed KNB header - just moved the empty anchor tag to right before the heading and in the KNB CSS I offset it vertically by the same height as the header

Actions

Also available in: Atom PDF