fix scroll dwon btn on chat

set to work dynamically
This commit is contained in:
tiago.kayaya
2021-09-24 16:10:24 +01:00
parent 45197375ff
commit f4ec6826ad
4 changed files with 8 additions and 4 deletions
+1 -1
View File
@@ -138,7 +138,7 @@ export class MessagesPage implements OnInit, AfterViewInit, OnDestroy {
this.startPosition = e.srcElement.scrollTop;
let scroll = e.srcElement.scrollTop;
let windowHeight = e.srcElement.scrollHeight;
let containerHeight = windowHeight - 596.59997558594;
let containerHeight = windowHeight - e.srcElement.clientHeight;
console.log(this.startPosition);
console.log(windowHeight);