Skip to content

Commit

Permalink
Fixed affix-bottom positioning
Browse files Browse the repository at this point in the history
Set top position to (scrollHeight - this.$element.height() - offsetBottom).
  • Loading branch information
gpakosz committed May 8, 2014
1 parent 9160790 commit 78cac11
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 @@ -82,7 +82,7 @@
.trigger($.Event(affixType.replace('affix', 'affixed')))

if (affix == 'bottom') {
this.$element.offset({ top: position.top })
this.$element.offset({ top: scrollHeight - this.$element.height() - offsetBottom })
}
}

Expand Down

0 comments on commit 78cac11

Please sign in to comment.