Fix scrolling to the bottom of an item

This commit is contained in:
Toby Zerner 2015-07-28 15:26:51 +09:30
parent 697cb2ed63
commit b87cd3ed53

View File

@ -533,7 +533,7 @@ class PostStream extends mixin(Component, evented) {
if ($item.length) { if ($item.length) {
const itemTop = $item.offset().top - this.getMarginTop(); const itemTop = $item.offset().top - this.getMarginTop();
const itemBottom = itemTop + $item.height(); const itemBottom = $item.offset().top + $item.height();
const scrollTop = $(document).scrollTop(); const scrollTop = $(document).scrollTop();
const scrollBottom = scrollTop + $(window).height(); const scrollBottom = scrollTop + $(window).height();