Fix initial scroll position sometimes being off

This commit is contained in:
Ken-Håvard Lieng 2018-11-29 12:05:42 +01:00
parent 0438a099cf
commit 869713d236
2 changed files with 54 additions and 54 deletions

File diff suppressed because one or more lines are too long

View File

@ -133,7 +133,7 @@ export default class MessageBox extends PureComponent {
const messageBoxHeight = windowHeight() - 100; const messageBoxHeight = windowHeight() - 100;
if (totalHeight > messageBoxHeight) { if (totalHeight > messageBoxHeight) {
this.initialScrollTop = totalHeight - messageBoxHeight; this.initialScrollTop = totalHeight;
} }
} }
} }