Authored by yyq

fix topic intro

... ... @@ -176,7 +176,6 @@ export default {
let dom = this.$refs.commentList.getElementsByClassName('comment-' + this.commentId);
if (scrollHeight && dom.length && (dom[0].offsetHeight + dom[0].offsetTop > scrollHeight)) {
console.log(scrollHeight - this.$refs.commentList.offsetHeight)
this.$refs.scroll.scrollTo(0, scrollHeight - this.$refs.commentList.offsetHeight);
}
}, 500);
... ...
... ... @@ -146,7 +146,7 @@ export default {
this.CHANGE_ARTICLE_LIST_INTRO_HEIGHT({
articleId: this.data.articleId,
introHeight: get(this.$refs, 'introPool.scrollHeight', 0) + 20,
introCollapseHeight: get(this.$refs, 'intro.scrollHeight', 0),
introCollapseHeight: get(this.$refs, 'intro.offsetHeight', 0),
type: this.type
});
}
... ...