From 78cac11cef392a740e4fae390e9957371243838b Mon Sep 17 00:00:00 2001 From: Gregory Pakosz Date: Fri, 9 May 2014 00:26:31 +0200 Subject: [PATCH] Fixed affix-bottom positioning Set top position to (scrollHeight - this.$element.height() - offsetBottom). --- js/affix.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/affix.js b/js/affix.js index 992ae7ff17..270b039bf1 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 }) } }