Commit 0fab6e7e authored by Jacob's avatar Jacob

Merge pull request #11722 from DocX/patch-1

Use document scroll height instead of offset height
parents d9266aee 6e9efb20
......@@ -83,7 +83,7 @@
.trigger($.Event(affixType.replace('affix', 'affixed')))
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