scroll to bottom

This commit is contained in:
richard-loafle 2020-02-10 15:27:24 +09:00
parent c022c82ac4
commit b095cc60f6
2 changed files with 10 additions and 1 deletions

View File

@ -182,7 +182,11 @@
(fileDragLeave)="onFileDragLeave()"
>
<!-- 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>
</button>

View File

@ -2007,4 +2007,9 @@ export class MessagesComponent implements OnInit, OnDestroy, AfterViewInit {
}
});
}
onClickScrollToBottom() {
this.chatMessages.initEventMore();
this.chatMessages.scrollToBottom();
}
}