FIX: Include small actions when determining what's on screen

This commit is contained in:
Robin Ward 2016-02-08 13:22:14 -05:00
parent 81a0b25324
commit c76e6e173e
3 changed files with 3 additions and 3 deletions

View file

@ -43,7 +43,7 @@ export default MountWidget.extend({
let windowTop = $w.scrollTop();
const $posts = this.$('article.boxed');
const $posts = this.$('.onscreen-post');
const viewportTop = windowTop - slack;
const topView = findTopView($posts, viewportTop, 0, $posts.length-1);

View file

@ -23,7 +23,7 @@ const icons = {
};
export default createWidget('post-small-action', {
tagName: 'div.small-action.clearfix',
tagName: 'div.small-action.onscreen-post.clearfix',
html(attrs) {
const contents = [];

View file

@ -295,7 +295,7 @@ createWidget('post-body', {
});
createWidget('post-article', {
tagName: 'article.boxed',
tagName: 'article.boxed.onscreen-post',
buildKey: attrs => `post-article-${attrs.id}`,
defaultState() {