Set overscanCount to 5

This commit is contained in:
Ken-Håvard Lieng 2018-11-14 08:33:01 +01:00
parent a7b6442ed9
commit a783a87d04
3 changed files with 55 additions and 53 deletions

File diff suppressed because one or more lines are too long

View File

@ -239,6 +239,7 @@ export default class MessageBox extends PureComponent {
initialScrollOffset={this.initialScrollTop}
onScroll={this.handleScroll}
className="messagebox-window"
overscanCount={5}
>
{this.renderMessage}
</List>

View File

@ -81,6 +81,7 @@ export default class UserList extends PureComponent {
itemKey={this.getItemKey}
itemSize={this.getItemHeight}
estimatedItemSize={24}
overscanCount={5}
>
{this.renderUser}
</List>