Selaa lähdekoodia

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

master
Leonard Kim 6 vuotta sitten
vanhempi
commit
c0e9f2b95a
1 muutettua tiedostoa jossa 2 lisäystä ja 1 poistoa
  1. 2
    1
      react/features/chat/components/web/MessageContainer.js

+ 2
- 1
react/features/chat/components/web/MessageContainer.js Näytä tiedosto

100
      */
100
      */
101
     scrollToBottom(withAnimation: boolean) {
101
     scrollToBottom(withAnimation: boolean) {
102
         this._messagesListEndRef.current.scrollIntoView({
102
         this._messagesListEndRef.current.scrollIntoView({
103
-            behavior: withAnimation ? 'smooth' : 'auto'
103
+            behavior: withAnimation ? 'smooth' : 'auto',
104
+            block: 'nearest'
104
         });
105
         });
105
     }
106
     }
106
 
107
 

Loading…
Peruuta
Tallenna