scroll to bottom
This commit is contained in:
parent
c022c82ac4
commit
b095cc60f6
|
@ -182,7 +182,11 @@
|
||||||
(fileDragLeave)="onFileDragLeave()"
|
(fileDragLeave)="onFileDragLeave()"
|
||||||
>
|
>
|
||||||
<!-- CHAT MESSAGES -->
|
<!-- CHAT MESSAGES -->
|
||||||
<button mat-stroked-button class=" icon-button text-accent-darkest">
|
<button
|
||||||
|
mat-stroked-button
|
||||||
|
class=" icon-button text-accent-darkest"
|
||||||
|
(click)="onClickScrollToBottom()"
|
||||||
|
>
|
||||||
<i class="mid mdi-arrow-collapse-down"></i>
|
<i class="mid mdi-arrow-collapse-down"></i>
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
|
|
|
@ -2007,4 +2007,9 @@ export class MessagesComponent implements OnInit, OnDestroy, AfterViewInit {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
onClickScrollToBottom() {
|
||||||
|
this.chatMessages.initEventMore();
|
||||||
|
this.chatMessages.scrollToBottom();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user