Fix scrolling

This commit is contained in:
Pierre HUBERT 2020-04-13 11:37:26 +02:00
parent 2cb9566c66
commit 8d7cb37003
2 changed files with 2 additions and 5 deletions

View File

@ -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 {

View File

@ -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);
}
},