0
0
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:
Charles B Johnson 2014-07-18 10:46:42 -04:00
parent 8c0eb9b00e
commit 724c4f526c

View 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