aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCharles B Johnson <[email protected]>2014-07-18 10:46:42 -0400
committerCharles B Johnson <[email protected]>2014-07-18 10:46:42 -0400
commit724c4f526cd56a28bb305fe6f1f31f3091bf2cd6 (patch)
tree2c13c10b9fd2977fc0a3563bd0b3fb8e36f0cb35
parent8c0eb9b00e28dada2b4aaa3792e89099743c675f (diff)
downloadbootstrap-724c4f526cd56a28bb305fe6f1f31f3091bf2cd6.tar.xz
bootstrap-724c4f526cd56a28bb305fe6f1f31f3091bf2cd6.zip
Fix issue where bottom affixed element floats over the footer when the
document height is smaller than the viewport height.
-rw-r--r--js/affix.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/affix.js b/js/affix.js
index daebbffdd..7f80041d5 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