mirror of
https://github.com/flarum/framework.git
synced 2024-11-28 20:16:08 +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) {
|
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();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user