Thread:Project:Support desk/link scroll position/reply (5)

No, I think the link anchors are IDs, which are always present. Is clicking the TOC even the deciding event? The fact that the content also start being hidden when you just scroll down - without clicking a link - is no problem as it just does not matter that the top-part of the content is not visible then.

But I think that is a problem for any link, which leads to an anchor; either to one on the same page or zo one on another page.

I would try this with jQuery: When you click a link inside .mw-body and this link leads to the same page (= to an anchor), then let jQuery move the viewport additional 152px down.