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
@@ -108,7 +108,7 @@ export class GroupMessagesPage 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;
if (scroll > this.currentPosition) {
//alert('BOTTOM');
+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);
@@ -174,7 +174,7 @@ export class GroupMessagesPage implements OnInit, OnChanges, AfterViewInit, OnDe
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;
if (scroll > this.currentPosition) {
//alert('BOTTOM');
@@ -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');