diff --git a/app/search/client/provider/result.js b/app/search/client/provider/result.js index 03367888e29c..1d62162bd202 100644 --- a/app/search/client/provider/result.js +++ b/app/search/client/provider/result.js @@ -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(); } diff --git a/app/search/client/style/style.css b/app/search/client/style/style.css index 93e7c4aa8d00..cd7509548840 100644 --- a/app/search/client/style/style.css +++ b/app/search/client/style/style.css @@ -25,7 +25,7 @@ display: flex; overflow: hidden; flex-direction: column; - flex: 1; + flex: 1 1 0; } .rocket-default-search-settings {