Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/progrhyme/hugo-theme-bootie-docs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkey-amb <yasutake.kiyoshi@gmail.com>2016-05-07 04:36:46 +0300
committerkey-amb <yasutake.kiyoshi@gmail.com>2016-05-07 04:36:46 +0300
commit5728b94beac6e28c353970dfb2024d5d509263d9 (patch)
tree22caff22cecf4e4149dc740921d1104e4971b279
parentd42824631d59bc8a4742fae475fad5a52886cc14 (diff)
Consider footHeight to stop sidebar scrolling
-rw-r--r--static/js/bootie-docs.js2
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"