From ed943735733793d13c09e0a7abfccab6838922a0 Mon Sep 17 00:00:00 2001 From: Chneemann Date: Wed, 12 Jun 2024 20:45:08 +0200 Subject: [PATCH] bugfix chat scroll down --- .../main-chat/chat-content/chat-content.component.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/app/components/main-chat/chat-content/chat-content.component.ts b/src/app/components/main-chat/chat-content/chat-content.component.ts index ed1704b..eb8f8e5 100644 --- a/src/app/components/main-chat/chat-content/chat-content.component.ts +++ b/src/app/components/main-chat/chat-content/chat-content.component.ts @@ -50,7 +50,9 @@ export class ChatContentComponent implements AfterViewInit { ) {} ngAfterViewInit() { - this.scrollToBottom(); + setTimeout(() => { + this.scrollToBottom(); + }, 0); } /**