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 daebbffdd..7f80041d5 100644
--- a/js/affix.js
+++ b/js/affix.js
@@ -81,7 +81,7 @@
Affix.prototype.checkPosition = function () {
if (!this.$element.is(':visible')) return
- var scrollHeight = $(document).height()
+ var scrollHeight = $('body').height()
var height = this.$element.height()
var offset = this.options.offset
var offsetTop = offset.top