clarify why we need this
This commit is contained in:
@@ -648,6 +648,10 @@ module.exports = React.createClass({
|
|||||||
const isAtBottom = scrollPanel.isAtBottom();
|
const isAtBottom = scrollPanel.isAtBottom();
|
||||||
const whoIsTyping = this.refs.whoIsTyping;
|
const whoIsTyping = this.refs.whoIsTyping;
|
||||||
const isTypingVisible = whoIsTyping && whoIsTyping.isVisible();
|
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) {
|
if (isAtBottom && isTypingVisible) {
|
||||||
scrollPanel.blockShrinking();
|
scrollPanel.blockShrinking();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user