Skip to content

fix(chat-messages): adjust scroll height when resizing#2104

Open
robertwilde wants to merge 1 commit into
mainfrom
fix/ai/scrollbar
Open

fix(chat-messages): adjust scroll height when resizing#2104
robertwilde wants to merge 1 commit into
mainfrom
fix/ai/scrollbar

Conversation

@robertwilde
Copy link
Copy Markdown
Collaborator

@robertwilde robertwilde commented May 28, 2026

This fixes the flaky behaviour of the chat-container e2e test introduced with the layout changes in 364fe8e by minding the scroll height when resizing the container. No change to the test necessary. My assumption is the faulty behaviour was always there, but it was never noticed because before the UX updates I made, the content of the chat container never exceeded its length, so in the test it never had to scroll.


Documentation.
Examples.
Dashboards Demo.
Playwright report.

Coverage Reports:

Code Coverage

gemini-code-assist[bot]

This comment was marked as outdated.

@github-actions

This comment was marked as outdated.

@robertwilde robertwilde force-pushed the fix/ai/scrollbar branch 4 times, most recently from 15eced3 to 8a8335a Compare May 29, 2026 08:10
@robertwilde robertwilde changed the title test(chat-messages): fix timing fix(chat-messages): adjust scroll height when resizing May 29, 2026
@robertwilde robertwilde marked this pull request as ready for review May 29, 2026 12:48
@robertwilde robertwilde requested review from a team as code owners May 29, 2026 12:48

this.resizeObserver = new ResizeObserver(() => {
this.debouncedScrollToBottom();
const element = container.nativeElement;
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think we should be doing this just to make our e2e pipeline happy unless its real valid use case

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants