Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yoho-community-web
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
1
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
yyq
6 years ago
Commit
f5ee9770dab6c4bbba3bba29bbad48f690df4d7b
1 parent
a707d0b7
fix topic intro
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 additions
and
2 deletions
apps/components/comments/comment-list.vue
apps/pages/article/components/article/article-item-intro.vue
apps/components/comments/comment-list.vue
View file @
f5ee977
...
...
@@ -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);
...
...
apps/pages/article/components/article/article-item-intro.vue
View file @
f5ee977
...
...
@@ -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.
scroll
Height', 0),
introCollapseHeight: get(this.$refs, 'intro.
offset
Height', 0),
type: this.type
});
}
...
...
Please
register
or
login
to post a comment