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

Fix: 'jump to bottom' creates big amounts of whitespace at the bottom #2567

Merged
merged 1 commit into from
Feb 5, 2019

Conversation

bwindels
Copy link
Contributor

@bwindels bwindels commented Feb 4, 2019

element-hq/element-web#8392

To make sure the min-height on the timeline gets cleared when needed, do it on ScrollPanel::componentDidUpdate if not at the bottom (we only care about a min-height (to avoid jumping when typing notifs disappear) when at the bottom). This should catch all cases when the timeline can shrink.

Also don't clear the min-height on a new message when typing is not visible because this will still cause the timeline to shrink and jump up when a message comes in after the typing has disappeared.

@bwindels bwindels requested a review from a team February 4, 2019 18:55
@dbkr dbkr self-assigned this Feb 5, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants