Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

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

Leonard Kimc0e9f2b95a35
diff --git a/react/features/chat/components/web/MessageContainer.js b/react/features/chat/components/web/MessageContainer.js
index fef9e43c45..659d5892fb 100644
--- a/react/features/chat/components/web/MessageContainer.js
+++ b/react/features/chat/components/web/MessageContainer.js
@@ -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'
});
}