— there is a page (xhtml) with tabular data.
— the table is made "sticky" header (when scrolling the page, the table header sticks to the top and stays there). Like in Yandex search results.
— the table has anchor links.
when you click on the anchor link, the browser positions the page so that the anchor to which we went, is at the top of the page and falls under the "sticky" header. I.e. search string data is not visible — it covers the header.
to make the transition on the anchor with a space at the height of the header.
Who can already solved such problem?
Until came up with the following options:
1. to shift the anchor 1-2 line below, but this will break the logic to the same row can be different heights.
2. to write a script that when clicked takes the page at the specified offset, but here it is necessary to calculate the offset somehow dynamically.
3. hang on-click handler with a delay, after which the transition is anchored by unrolling a page at the height of the header.