Commit 724c4f52 authored by Charles B Johnson's avatar Charles B Johnson

Fix issue where bottom affixed element floats over the footer when the

  document height is smaller than the viewport height.
parent 8c0eb9b0
...@@ -81,7 +81,7 @@ ...@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment