openSUSE / wiki

openSUSE Wiki
http://en.opensuse.org
25 stars 17 forks source link

table of contents has "position:sticky", but scrolls away #41

Closed cboltz closed 5 years ago

cboltz commented 5 years ago

The TOC (table of contents) in the right column has position:sticky and overflow:auto, therefore I'd expect that it stays always visible. However, when scrolling down, it scrolls away.

The screenshot shows https://en.opensuse.org/openSUSE:Packaging_checks - other pages are also affected, but with a shorter TOC that doesn't need scrollbars it's less visible that the TOC shouldn't scroll away.

Screenshot_20190415_223006

guoyunhe commented 5 years ago

Possible reason is that the #toc's parent has overflow: hidden; which disabled any position: sticky; of children. I will check it.

cboltz commented 5 years ago

This was fixed with your pull requests - thanks!

Deployed now.