Skip to content

Possible left/right navbar sidebar menu scrollbar not visible fix#2887

Closed
shanna6 wants to merge 2 commits into
docker:masterfrom
shanna6:navbar
Closed

Possible left/right navbar sidebar menu scrollbar not visible fix#2887
shanna6 wants to merge 2 commits into
docker:masterfrom
shanna6:navbar

Conversation

@shanna6

@shanna6 shanna6 commented Apr 19, 2017

Copy link
Copy Markdown
Contributor

Proposed changes

The homepage and many other pages have scrolling issues with the left and right scrollbars if content is expanded within them. There is a function called checkNavSizes() in docs.js that tried to fix this issue I believe but was incomplete. Because the homepage is different from the other page, a check is needed and the sidebar height to set it accordingly. The other pages just needed to set the correct tags with the correct height when the footer comes into view as was previously attempted.

layout.scss "sidebar-wrapper" needed the transition style removed or setting the height would not be instant on the right side menu. Also "sidebar" the "height: 100% !important" had to be changed to just "height: 100%" to allow the height to be set.

Related issues (optional)

Fixes: #2232

shanna6 added 2 commits April 18, 2017 12:17
When the footer is present it can cover the left side navbar because
it's height is not adjusted.

In "/js/docks.js" there is a function "checkNavSizes()" that fixes this
issue with the right navbar "toc-nav", but two changes are needed. First
in "docks.js" one line is added to also update the "col-nav". Second in
"/_scss/_layout.css" "sidebar" the "height: 100% !important" must be
changed to just "height: 100%" or the new script won't update correctly.
The "toc-nav" uses "sidebar-wrapper" which already uses "height: 100%"
and allows "checkNavSizes()" to work.
The homepage and many other pages have scrolling issues with the left
and right scrollbars if content is expanded. There is a function called
checkNavSizes() in docs.js that tried to fix this issue I believe but
was incomplete. Because the homepage is different from the other page, a
check is needed and the sidebar height is set accordingly. The other
pages just needed to set the correct tags with the correct height when
the footer came into view.

layout.scss needed the transition style removed or setting the height
would not be instant on the right side menu
@johndmulhausen

Copy link
Copy Markdown
Contributor

Sorry, @stevenhanna6 but we went with #2860 for this bug. We'll shoot you 25 points for the attempted PR. :)

@shanna6

shanna6 commented Apr 21, 2017

Copy link
Copy Markdown
Contributor Author

Yah I was impressed with allejo's fix, much cleaner and better solution by a mile, thanks for the 25pts.

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

Successfully merging this pull request may close these issues.

Sidebar menu not visible when many items are expanded

2 participants