This commit is contained in:
tiago.kayaya
2021-07-26 09:44:11 +01:00
parent 6a0e65393b
commit 03d52e0918
8 changed files with 82 additions and 78 deletions
+2 -3
View File
@@ -49,8 +49,8 @@ export class MessagesPage implements OnInit, AfterViewChecked {
/* setInterval(()=>{ */
this.load();
/* }, 9000); */
this.el = document.getElementById("scrollToBottom");
this.el.scrollTop = this.el.scrollHeight - this.el.scrollTop;
/* this.el = document.getElementById("scrollToBottom");
this.el.scrollTop = this.el.scrollHeight - this.el.scrollTop; */
}
@@ -78,7 +78,6 @@ export class MessagesPage implements OnInit, AfterViewChecked {
try {
this.myScrollContainer.nativeElement.scrollTop = this.myScrollContainer.nativeElement.scrollHeight;
} catch(err) { }
}
sendMessage(){