Fix initial scroll position sometimes being off
This commit is contained in:
parent
0438a099cf
commit
869713d236
File diff suppressed because one or more lines are too long
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user