fix(chat): workaround for chat scroll causing layout misalignment
This commit is contained in:
parent
011972872e
commit
c0e9f2b95a
|
@ -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'
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue