Commit 5728b94b authored by key-amb's avatar key-amb
Browse files

Consider footHeight to stop sidebar scrolling

parent d4282463
......@@ -22,7 +22,7 @@ window.onload = function() {
sideNode.css({"position": "fixed", "top": headHeight + 20 + "px"});
} else if (w.scrollTop() >= scrollStop) {
var topNext
= headHeight - (headHeight + sideHeight)
= headHeight - (headHeight + sideHeight + footHeight)
* (w.scrollTop() - scrollStop) / (totalHeight - scrollStop);
sideNode.css({
"position": "fixed", "top": topNext + "px", "bottom": footHeight + "px"
......
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