1
0
mirror of https://github.com/flarum/core.git synced 2025-06-10 00:25:07 +02:00

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

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