aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--js/affix.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/affix.js b/js/affix.js
index 992ae7ff1..270b039bf 100644
--- a/js/affix.js
+++ b/js/affix.js
@@ -82,7 +82,7 @@
.trigger($.Event(affixType.replace('affix', 'affixed')))
if (affix == 'bottom') {
- this.$element.offset({ top: position.top })
+ this.$element.offset({ top: scrollHeight - this.$element.height() - offsetBottom })
}
}