From 724c4f526cd56a28bb305fe6f1f31f3091bf2cd6 Mon Sep 17 00:00:00 2001 From: Charles B Johnson Date: Fri, 18 Jul 2014 10:46:42 -0400 Subject: [PATCH] Fix issue where bottom affixed element floats over the footer when the document height is smaller than the viewport height. --- js/affix.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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