Просмотр исходного кода

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

master
Leonard Kim 6 лет назад
Родитель
Сommit
c0e9f2b95a
1 измененных файлов: 2 добавлений и 1 удалений
  1. 2
    1
      react/features/chat/components/web/MessageContainer.js

+ 2
- 1
react/features/chat/components/web/MessageContainer.js Просмотреть файл

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

Загрузка…
Отмена
Сохранить