Fix issue with underfilled timelines when barren of content (#8432)

t3chguy/dedup-icons-17oct
Michael Telatynski 2022-04-28 10:26:57 +01:00 committed by GitHub
parent 9c397625b0
commit 482bb6f48b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -731,7 +731,7 @@ export default class ScrollPanel extends React.Component<IProps> {
const contentHeight = this.getMessagesHeight();
// Only round to the nearest page when we're basing the height off the content, not off the scrollNode height
// otherwise it'll cause too much overscroll which makes it possible to entirely scroll content off-screen.
if (contentHeight < sn.clientHeight - PAGE_SIZE) {
if (contentHeight < sn.clientHeight) {
this.minListHeight = sn.clientHeight;
} else {
this.minListHeight = Math.ceil(contentHeight / PAGE_SIZE) * PAGE_SIZE;