mirror of
https://github.com/Hopiu/bootstrap.git
synced 2026-03-21 15:00:23 +00: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…
Reference in a new issue