From: Gregory Pakosz Date: Thu, 8 May 2014 22:26:31 +0000 (+0200) Subject: Fixed affix-bottom positioning X-Git-Tag: v3.2.0~178^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=78cac11cef392a740e4fae390e9957371243838b;p=thirdparty%2Fbootstrap.git Fixed affix-bottom positioning Set top position to (scrollHeight - this.$element.height() - offsetBottom). --- 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 }) } }