diff --git a/js/affix.js b/js/affix.js index 992ae7ff1786..270b039bf10d 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 }) } }