mirror of
https://github.com/flarum/framework.git
synced 2024-11-25 01:36:53 +08:00
Fix scrolling to the bottom of an item
This commit is contained in:
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();
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user