Skip to content

Commit

Permalink
[FIX] search messages scroll (#15175)
Browse files Browse the repository at this point in the history
  • Loading branch information
ggazzo authored and sampaiodiego committed Aug 13, 2019
1 parent a5093a0 commit 045826b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/search/client/provider/result.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ Template.DefaultSearchResultTemplate.onRendered(function() {
const result = this.data.result.get();
if (result && this.hasMore.get()) {
Tracker.afterFlush(() => {
if (list.scrollHeight <= list.offsetHeight) {
if (list.scrollHeight < list.offsetHeight) {
this.data.payload.limit = (this.data.payload.limit || this.pageSize) + this.pageSize;
this.data.search();
}
Expand Down
2 changes: 1 addition & 1 deletion app/search/client/style/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
display: flex;
overflow: hidden;
flex-direction: column;
flex: 1;
flex: 1 1 0;
}

.rocket-default-search-settings {
Expand Down

0 comments on commit 045826b

Please sign in to comment.