1
0
mirror of https://github.com/flarum/core.git synced 2025-02-25 19:53:48 +01:00

Fix incorrect visible range in post scrubber

This commit is contained in:
Toby Zerner 2015-06-11 18:39:12 +09:30
parent ac83cb1cf4
commit 0f5156afd4

View File

@ -134,7 +134,7 @@ export default class PostScrubber extends Component {
// properties to a 'default' state. These values reflect what would be
// seen if the browser were scrolled right up to the top of the page,
// and the viewport had a height of 0.
var $items = stream.$('> .item');
var $items = stream.$('> .item[data-index]');
var index = $items.first().data('index');
var visible = 0;
var period = '';