Fix issue with underfilled timelines when barren of content (#8432)
parent
9c397625b0
commit
482bb6f48b
|
@ -731,7 +731,7 @@ export default class ScrollPanel extends React.Component<IProps> {
|
||||||
const contentHeight = this.getMessagesHeight();
|
const contentHeight = this.getMessagesHeight();
|
||||||
// Only round to the nearest page when we're basing the height off the content, not off the scrollNode height
|
// 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.
|
// 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;
|
this.minListHeight = sn.clientHeight;
|
||||||
} else {
|
} else {
|
||||||
this.minListHeight = Math.ceil(contentHeight / PAGE_SIZE) * PAGE_SIZE;
|
this.minListHeight = Math.ceil(contentHeight / PAGE_SIZE) * PAGE_SIZE;
|
||||||
|
|
Loading…
Reference in New Issue