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

Commit bceba14

Browse files
committed
Fix issue with underfilled timelines when barren of content
1 parent 9c39762 commit bceba14

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/structures/ScrollPanel.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -731,7 +731,7 @@ export default class ScrollPanel extends React.Component<IProps> {
731731
const contentHeight = this.getMessagesHeight();
732732
// Only round to the nearest page when we're basing the height off the content, not off the scrollNode height
733733
// otherwise it'll cause too much overscroll which makes it possible to entirely scroll content off-screen.
734-
if (contentHeight < sn.clientHeight - PAGE_SIZE) {
734+
if (contentHeight < sn.clientHeight) {
735735
this.minListHeight = sn.clientHeight;
736736
} else {
737737
this.minListHeight = Math.ceil(contentHeight / PAGE_SIZE) * PAGE_SIZE;

0 commit comments

Comments
 (0)