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

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

  document height is smaller than the viewport height.
parent 8c0eb9b0
Showing with 1 addition and 1 deletion
+1 -1
......@@ -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
......
Supports Markdown
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