-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Navbar scrollbar intermittently shows #200
Comments
Fix readthedocs#200 Only tested with Firebug, didn't bother to install SASS.
Adds l3 + l4 nav menus, with more intuitive scrolling to make wandering the additional nav menu items much easier. Resolves #25. Resolves #76. * Reuses some styles for l3 + l4 navs items * Nav interaction was changed to be more intuitive: * Nav is always sticky, doesn't scroll past end of content * Nav scrolls up immediately on window scroll events * Nav scrolls independently * Adds TOC expand plus links to the left of nav elements with children, these are added and update dynamically * Links in nav don't automatically scroll nav * Scrolling content will start scrolling nav again * Adds URL fragment handling to link and show current anchor links
This resolves readthedocs#200, where a scrollbar was sometimes visible on the navbar. This unfortunately wasn't addressable with just CSS, as outlined in readthedocs#206. Because we need the element to be scrollable, we can't set `overflow: hidden` on the nav element. This fixes this issue by: * Adding a `wy-side-scroll` element over the fixed position nav element and under the menu item elements * `wy-side-scroll` is set to 320px width, while the fixed position nav elements and menu item elements are 300px, clipping the scrollbar with `overflow-x: hidden` on the fixed position element * Javascript is set to scroll the new scroll element instead of the parent fixed position element * For backwards compatibility on already generated HTML, the new scroll element is added dynamically if it is missing, and children of the fixed position element are moved there. This was tested to be working in both cases, on Linux FF, Chrome, Windows IE, and OSX Chrome and Safari.
This resolves readthedocs#200, where a scrollbar was sometimes visible on the navbar. This unfortunately wasn't addressable with just CSS, as outlined in readthedocs#206. Because we need the element to be scrollable, we can't set `overflow: hidden` on the nav element. This fixes this issue by: * Adding a `wy-side-scroll` element over the fixed position nav element and under the menu item elements * `wy-side-scroll` is set to 320px width, while the fixed position nav elements and menu item elements are 300px, clipping the scrollbar with `overflow-x: hidden` on the fixed position element * Javascript is set to scroll the new scroll element instead of the parent fixed position element * For backwards compatibility on already generated HTML, the new scroll element is added dynamically if it is missing, and children of the fixed position element are moved there. This was tested to be working in both cases on a variety of platforms: Linux FF, Chrome, Windows IE, OSX Chrome and Safari, iPhone 5.1, and Android 4.2.
I've also just noticed this and gone to make a patch, but I was doing the same thing as #206. It would be good to get some kind of fix in. If it's going to take longer to review a more complex approach like #215, maybe it's worth doing something like #206 as a stopgap measure. As I understand it, that would reduce the issue to only showing the unwanted scrollbar when the sidebar content is actually long enough to overflow the visible area. |
This resolves readthedocs#200, where a scrollbar was sometimes visible on the navbar. This unfortunately wasn't addressable with just CSS, as outlined in readthedocs#206. Because we need the element to be scrollable, we can't set `overflow: hidden` on the nav element. This fixes this issue by: * Adding a `wy-side-scroll` element over the fixed position nav element and under the menu item elements * `wy-side-scroll` is set to 320px width, while the fixed position nav elements and menu item elements are 300px, clipping the scrollbar with `overflow-x: hidden` on the fixed position element * Javascript is set to scroll the new scroll element instead of the parent fixed position element This was tested to be working in both cases on a variety of platforms: Linux FF, Chrome, Windows IE, OSX Chrome and Safari, iPhone 5.1, and Android 4.2.
This resolves readthedocs#200, where a scrollbar was sometimes visible on the navbar. This unfortunately wasn't addressable with just CSS, as outlined in readthedocs#206. Because we need the element to be scrollable, we can't set `overflow: hidden` on the nav element. This fixes this issue by: * Adding a `wy-side-scroll` element over the fixed position nav element and under the menu item elements * `wy-side-scroll` is set to 320px width, while the fixed position nav elements and menu item elements are 300px, clipping the scrollbar with `overflow-x: hidden` on the fixed position element * Javascript is set to scroll the new scroll element instead of the parent fixed position element This was tested to be working in both cases on a variety of platforms: Linux FF, Chrome, Windows IE, OSX Chrome and Safari, iPhone 5.1, and Android 4.2.
Moving readthedocs/readthedocs.org#1276 here
I've also noticed a scrollbar on the nav intermittently -- only on an external display 50% of the time on OSX + Chrome/Safari. Report above was on Linux + FF38 of the same.
The text was updated successfully, but these errors were encountered: