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
@@ -140,7 +140,11 @@ export class MessagesPage implements OnInit, OnChanges, AfterViewInit, OnDestroy
this.startPosition = e.srcElement.scrollTop;
let scroll = e.srcElement.scrollTop;
let windowHeight = e.srcElement.scrollHeight;
let containerHeight = windowHeight - 454.199951171875;
let containerHeight = windowHeight - e.srcElement.clientHeight;
console.log(containerHeight);
console.log(e.srcElement.clientHeight);
if (scroll > this.currentPosition) {
//alert('BOTTOM');