mirror of
https://github.com/twbs/bootstrap.git
synced 2022-11-09 12:25:43 -05:00
Fix issue where bottom affixed element floats over the footer when the
document height is smaller than the viewport height.
This commit is contained in:
parent
8c0eb9b00e
commit
724c4f526c
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue