Skip to content

Commit

Permalink
Merge pull request #11722 from DocX/patch-1
Browse files Browse the repository at this point in the history
Use document scroll height instead of offset height
  • Loading branch information
fat committed Dec 25, 2013
2 parents d9266ae + 6e9efb2 commit 0fab6e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/affix.js
Original file line number Diff line number Diff line change
Expand Up @@ -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() })
}
}

Expand Down

0 comments on commit 0fab6e7

Please sign in to comment.