Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
Fix issue with underfilled timelines when barren of content (#8432)
Browse files Browse the repository at this point in the history
  • Loading branch information
t3chguy authored Apr 28, 2022
1 parent 9c39762 commit 482bb6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/structures/ScrollPanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 482bb6f

Please sign in to comment.