From: Charles B Johnson Date: Fri, 18 Jul 2014 14:46:42 +0000 (-0400) Subject: Fix issue where bottom affixed element floats over the footer when the X-Git-Tag: v3.3.0~305^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=724c4f526cd56a28bb305fe6f1f31f3091bf2cd6;p=thirdparty%2Fbootstrap.git Fix issue where bottom affixed element floats over the footer when the document height is smaller than the viewport height. --- diff --git a/js/affix.js b/js/affix.js index daebbffdd0..7f80041d5d 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