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
"Sidebars automatically scroll to active item" feature not working in Firefox 97 #3624
Comments
I'm not able reproduce this with the latest Firefox. Oddly enough I was when you reached out to me yesterday, but today I'm not seeing this issue anymore. Are you still able to reproduce? This video shows that both sidebars are correctly positioned: Ohne.Titel.mp4 |
When I open https://docs.baslerweb.com/line-pitch on Firefox, the sidebar doesn't scroll and "Line Pitch" isn't visible in the navigation. When I open the same URL in Chrome, scrolling works properly. Can you reproduce that? Our docs were last built with Insiders 4.7.0, but I'm seeing the same behaviour on staging with 4.10.0. |
Hmm, yes I'm seeing the same behavior on your website, but I'm still not able to reproduce it on the official docs – just checked again. My next thought was that maybe it's triggered by the sidebar having much more entries, but I'm also not able to reproduce it for the changelog which is very long, as can be seen in the video I posted in my last comment. You have several customizations in place, could you try to remove them and see if the issue persists with a mint installation? |
I removed all of the customizations and the issue persisted. I was finally able to track it down, it's related to the size of the nav object. If I tried to create a dummy project but couldn't reproduce the error, maybe you need >200 different topics? I don't know. I'll keep trying ... |
Hmm, super weird. Thanks for your efforts. It's likely an easy fix as soon as you can reproduce it on a mint project. |
Woo, I got it. Download, unzip, build, open one of the last topics, e.g., |
Jup, confirmed. Thanks for taking the time to create a reproduction! |
Yup, that was a little tricky. Hope it helps! Curious how this will turn out. |
I've already isolated the error – Firefox returns different values for Possibly related: |
Fixed in |
Success! I can confirm scrolling works as advertised with the fix. |
Released as part of 8.2.4+insiders-4.10.1 |
Contribution guidelines
I've found a bug and checked that ...
mkdocs
orreadthedocs
themescustom_dir
,extra_javascript
andextra_css
Description
In Firefox 97, the "Sidebars automatically scroll to active item" feature (see here) isn't working anymore.
Expected behaviour
When using Firefox 97 and the latest version of Insiders, the navigation should be scrolled into view as described here.
Actual behaviour
Navigation does not scroll into view in Firefox 97. No console errors.
Steps to reproduce
See description.
Package versions
Configuration
N/A
System information
The text was updated successfully, but these errors were encountered: