mirror of
https://github.com/twbs/bootstrap.git
synced 2025-08-13 17:14:04 +02: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:
@@ -81,7 +81,7 @@
|
|||||||
Affix.prototype.checkPosition = function () {
|
Affix.prototype.checkPosition = function () {
|
||||||
if (!this.$element.is(':visible')) return
|
if (!this.$element.is(':visible')) return
|
||||||
|
|
||||||
var scrollHeight = $(document).height()
|
var scrollHeight = $('body').height()
|
||||||
var height = this.$element.height()
|
var height = this.$element.height()
|
||||||
var offset = this.options.offset
|
var offset = this.options.offset
|
||||||
var offsetTop = offset.top
|
var offsetTop = offset.top
|
||||||
|
Reference in New Issue
Block a user