diff --git a/src/assets/wise5/components/aiChat/ai-chat-show-work/ai-chat-show-work.component.html b/src/assets/wise5/components/aiChat/ai-chat-show-work/ai-chat-show-work.component.html
index 48d5aeee7fe..98755d5e900 100644
--- a/src/assets/wise5/components/aiChat/ai-chat-show-work/ai-chat-show-work.component.html
+++ b/src/assets/wise5/components/aiChat/ai-chat-show-work/ai-chat-show-work.component.html
@@ -1,5 +1,6 @@
-
+
void;
+
+ private scrollToBottom(): void {
+ setTimeout(() => {
+ this.messagesContainer.nativeElement.scroll({
+ top: this.messagesContainer.nativeElement.scrollHeight,
+ behavior: 'smooth'
+ });
+ }, 100);
+ }
}
applyMixins(AiChatStudentComponent, [ComputerAvatarInitializer]);
diff --git a/src/messages.xlf b/src/messages.xlf
index fcbc00f3a43..2b43fa1cbe7 100644
--- a/src/messages.xlf
+++ b/src/messages.xlf
@@ -15880,7 +15880,7 @@ Are you sure you want to proceed?
An error occurred.
src/assets/wise5/components/aiChat/ai-chat-student/ai-chat-student.component.ts
- 101
+ 104