mirror of
				https://github.com/pierre42100/ComunicWeb
				synced 2025-11-03 19:54:14 +00:00 
			
		
		
		
	Fix scrolling
This commit is contained in:
		@@ -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);
 | 
			
		||||
		}
 | 
			
		||||
	},
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user