paradox icon indicating copy to clipboard operation
paradox copied to clipboard

Anchors below tabs don't correctly scroll in Firefox

Open raboof opened this issue 5 years ago • 1 comments

When you link to an anchor that occurs after a tab group with firefox, such as https://doc.akka.io/docs/akka-http/snapshot/common/http-model.html#attributes , the scroll position is not correctly set.

Likely the scroll position is determined before hiding the not-currently-shown content of the tab group.

This behavior is not trivial to reproduce in isolation (e.g. https://arnout.engelen.eu/test.html#quisque seems to work), so perhaps it might be possible to fix this on 'our side'

raboof avatar Jul 09 '20 12:07 raboof

According to https://stackoverflow.com/questions/6826741/anchor-link-landing-in-wrong-position one somewhat simple fix is to include a script that resets scroll positions after all scripts have run (validated that it works by putting it into projectSpecificFooter.st.

jrudolph avatar Jul 09 '20 12:07 jrudolph