mirror of
https://github.com/twbs/bootstrap.git
synced 2025-01-28 20:52:21 +01: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
@ -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…
x
Reference in New Issue
Block a user