]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Fix issue where bottom affixed element floats over the footer when the 13405/head
authorCharles B Johnson <mail@cbjohnson.info>
Fri, 18 Jul 2014 14:46:42 +0000 (10:46 -0400)
committerCharles B Johnson <mail@cbjohnson.info>
Fri, 18 Jul 2014 14:46:42 +0000 (10:46 -0400)
  document height is smaller than the viewport height.

js/affix.js

index daebbffdd0a9f3c0aabf8088019e2374649eca99..7f80041d5d24ec267c86a6efe7b7b7e74c124c84 100644 (file)
@@ -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