mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-15 20:54:59 +08:00
Fix issue with underfilled timelines when barren of content (#8432)
This commit is contained in:
parent
9c397625b0
commit
482bb6f48b
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user