fix(chat): workaround for chat scroll causing layout misalignment

This commit is contained in:
Leonard Kim 2019-07-17 15:04:35 -07:00 committed by virtuacoplenny
parent 011972872e
commit c0e9f2b95a
1 changed files with 2 additions and 1 deletions

View File

@ -100,7 +100,8 @@ export default class MessageContainer extends AbstractMessageContainer {
*/
scrollToBottom(withAnimation: boolean) {
this._messagesListEndRef.current.scrollIntoView({
behavior: withAnimation ? 'smooth' : 'auto'
behavior: withAnimation ? 'smooth' : 'auto',
block: 'nearest'
});
}