clarify why we need this

pull/21833/head
Bruno Windels 2019-02-22 14:48:56 +01:00
parent db7203ed71
commit 32f055bec2
1 changed files with 4 additions and 0 deletions

View File

@ -648,6 +648,10 @@ module.exports = React.createClass({
const isAtBottom = scrollPanel.isAtBottom();
const whoIsTyping = this.refs.whoIsTyping;
const isTypingVisible = whoIsTyping && whoIsTyping.isVisible();
// when messages get added to the timeline,
// but somebody else is still typing,
// update the min-height, so once the last
// person stops typing, no jumping occurs
if (isAtBottom && isTypingVisible) {
scrollPanel.blockShrinking();
}