Commit 6e9efb20 authored by Lukáš Doležal's avatar Lukáš Doležal

Use document scroll height instead of offset height to support body with absolute height

parent aac4f018
......@@ -73,7 +73,7 @@
this.$element.removeClass(Affix.RESET).addClass('affix' + (affix ? '-' + affix : ''))
if (affix == 'bottom') {
this.$element.offset({ top: document.body.offsetHeight - offsetBottom - this.$element.height() })
this.$element.offset({ top: scrollHeight - offsetBottom - this.$element.height() })
}
}
......
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