diff --git a/js/affix.js b/js/affix.js index 3ec487a78d..bc11feaa8e 100644 --- a/js/affix.js +++ b/js/affix.js @@ -83,7 +83,7 @@ .trigger($.Event(affixType.replace('affix', 'affixed'))) if (affix == 'bottom') { - this.$element.offset({ top: document.body.offsetHeight - offsetBottom - this.$element.height() }) + this.$element.offset({ top: scrollHeight - offsetBottom - this.$element.height() }) } }