mirror of
https://github.com/flarum/core.git
synced 2025-06-12 09:32:11 +02:00
Fix scrolling to the bottom of an item
This commit is contained in:
@ -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();
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user