From 482bb6f48b8c223acb4a0adf3b4bb70ab1775832 Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Thu, 28 Apr 2022 10:26:57 +0100 Subject: [PATCH] Fix issue with underfilled timelines when barren of content (#8432) --- src/components/structures/ScrollPanel.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/structures/ScrollPanel.tsx b/src/components/structures/ScrollPanel.tsx index 598f2488e8..f2595471c9 100644 --- a/src/components/structures/ScrollPanel.tsx +++ b/src/components/structures/ScrollPanel.tsx @@ -731,7 +731,7 @@ export default class ScrollPanel extends React.Component { 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;