Commit 22423b24 authored by key-amb's avatar key-amb
Browse files

Fix sidebar start position considering navbar margin-bottom

parent 6908538d
......@@ -19,7 +19,7 @@ window.onload = function() {
if (w.scrollTop() <= scrollStart) {
sideNode.css({"position": "fixed"});
} else if (scrollStart < w.scrollTop() && w.scrollTop() < scrollStop) {
sideNode.css({"position": "fixed", "top": headHeight + "px"});
sideNode.css({"position": "fixed", "top": headHeight + 20 + "px"});
} else if (w.scrollTop() >= scrollStop) {
var topNext
= headHeight - (headHeight + sideHeight)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment