diff options
| author | Charles B Johnson <[email protected]> | 2014-07-18 10:46:42 -0400 |
|---|---|---|
| committer | Charles B Johnson <[email protected]> | 2014-07-18 10:46:42 -0400 |
| commit | 724c4f526cd56a28bb305fe6f1f31f3091bf2cd6 (patch) | |
| tree | 2c13c10b9fd2977fc0a3563bd0b3fb8e36f0cb35 /js | |
| parent | 8c0eb9b00e28dada2b4aaa3792e89099743c675f (diff) | |
| download | bootstrap-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.
Diffstat (limited to 'js')
| -rw-r--r-- | js/affix.js | 2 |
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 |
