diff options
author | key-amb <yasutake.kiyoshi@gmail.com> | 2016-05-07 04:36:46 +0300 |
---|---|---|
committer | key-amb <yasutake.kiyoshi@gmail.com> | 2016-05-07 04:36:46 +0300 |
commit | 5728b94beac6e28c353970dfb2024d5d509263d9 (patch) | |
tree | 22caff22cecf4e4149dc740921d1104e4971b279 | |
parent | d42824631d59bc8a4742fae475fad5a52886cc14 (diff) |
Consider footHeight to stop sidebar scrolling
-rw-r--r-- | static/js/bootie-docs.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/static/js/bootie-docs.js b/static/js/bootie-docs.js index 22ede36..640630c 100644 --- a/static/js/bootie-docs.js +++ b/static/js/bootie-docs.js @@ -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" |