mirror of
https://github.com/pierre42100/ComunicWeb
synced 2024-11-22 20:19:21 +00:00
Fix scrolling
This commit is contained in:
parent
2cb9566c66
commit
8d7cb37003
@ -18,14 +18,11 @@
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.big-box-conversation .box-body .slimScrollDiv {
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.big-box-conversation .direct-chat-messages {
|
||||
flex: 1 1 auto;
|
||||
height: 0px;
|
||||
overflow: auto;
|
||||
scroll-behavior: smooth;
|
||||
}
|
||||
|
||||
.big-box-conversation .direct-chat-info span {
|
||||
|
@ -330,7 +330,7 @@ const ConversationPageConvPart = {
|
||||
//Set a timeout to make scroll properly work (for newest messages)
|
||||
if(toLatestMessages){
|
||||
setTimeout(function(){
|
||||
messageContainer.scrollIntoView(false)
|
||||
messageContainer.parentNode.scrollTop = messageContainer.parentNode.scrollHeight
|
||||
}, 100);
|
||||
}
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user