Fix MessageBox scroll stutter when state updates while close to the bottom

This commit is contained in:
Ken-Håvard Lieng 2019-02-08 09:28:55 +01:00
parent c1e1f2c327
commit 7ad76273c0
7 changed files with 109 additions and 86 deletions

View file

@ -28,7 +28,8 @@ export default class UserList extends PureComponent {
if (index === 0) {
return 12;
} if (index === users.length + 1) {
}
if (index === users.length + 1) {
return 10;
}
return 24;
@ -39,7 +40,8 @@ export default class UserList extends PureComponent {
if (index === 0) {
return 'top';
} if (index === users.length + 1) {
}
if (index === users.length + 1) {
return 'bottom';
}
return index;