Fix initial scroll position sometimes being off
This commit is contained in:
parent
0438a099cf
commit
869713d236
2 changed files with 54 additions and 54 deletions
|
@ -133,7 +133,7 @@ export default class MessageBox extends PureComponent {
|
|||
|
||||
const messageBoxHeight = windowHeight() - 100;
|
||||
if (totalHeight > messageBoxHeight) {
|
||||
this.initialScrollTop = totalHeight - messageBoxHeight;
|
||||
this.initialScrollTop = totalHeight;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue