-
Notifications
You must be signed in to change notification settings - Fork 59
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
Table of Contents Max Height Inconsistency #559
Comments
Thanks for reporting the bug! |
That would keep the sticky first header to always be one line, also solves #559
Would you mind to check if the current patch fixes it for you? |
I replaced the StickyHeader.less file with the one you updated. However, I'm not seeing any changes in the table of contents behavior. Were there additional steps I needed to take? |
Oops sorry I missed one rule, should be fixed now. |
Looks like the ToC without the sticky header is still being cut off at the bottom of the view port when resting at the top of the page. |
Ah I see what you mean. That is a bit more complicated to fix and I am currently away for holiday, I will look into it when I come back! |
No problem! I appreciate you looking in to it. |
Describe the Bug
On a page with a lot of headers, the table of contents goes past the bottom of the viewport. Which wouldn't normally be a problem, thanks to the scroll bar, but the scroll bar isn't displaying all of the headers when scrolling down. It seems to cut them off, expecting you to scroll down the page itself to see more. My guess is that this has to do with how the max-height is being calculated for the ToC, but I'm not sure. However, scrolling down the page switches to the ToC to the sticky version, which has proper height formatting. In the sticky ToC, you can scroll to the top and bottom of the list without an issue.
Steps to reproduce the behavior:
Expected Behavior
I would expect that if I had just opened a page, I could scroll the ToC to any position and be able to see all available headers, without having to scroll the page itself.
System
Non-sticky, scrolled to the top:
Non-sticky, scrolled to the bottom:
Sticky, scrolled to the top:
Sticky, scrolled to the bottom:
Thank you!
The text was updated successfully, but these errors were encountered: