Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Anchors below tabs don't correctly scroll in Firefox #443

Open
raboof opened this issue Jul 9, 2020 · 1 comment
Open

Anchors below tabs don't correctly scroll in Firefox #443

raboof opened this issue Jul 9, 2020 · 1 comment

Comments

@raboof
Copy link
Contributor

raboof commented Jul 9, 2020

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'

@jrudolph
Copy link
Contributor

jrudolph commented Jul 9, 2020

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 added a commit to jrudolph/incubator-pekko-http that referenced this issue Jul 19, 2023
It was not used any more, but more importantly it does not seem to be
necessary any more, as the underlying bug in Firefox seems to be fixed by
now.

See lightbend/paradox#443 for a history of
the problem.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants