-
Notifications
You must be signed in to change notification settings - Fork 687
Fix automatic scrolling to the bottom of main page content #10740
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR fixes automatic scrolling behavior on the Aspire Dashboard's main content pages, specifically addressing broken scroll-to-bottom functionality on structured logs and traces that occurred after a FluentUI update. The changes improve scrolling stability by reducing scroll position jumps and properly handling edge cases.
Key changes:
- Enhanced scroll detection logic to handle container resize events and eliminate false positives
- Added large overscan buffers to virtualized grids to reduce scrolling jumps during data updates
- Improved state management for scroll-to-bottom behavior with better edge case handling
Reviewed Changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated 2 comments.
Show a summary per file
File | Description |
---|---|
src/Aspire.Dashboard/wwwroot/js/app.js | Core scrolling logic improvements with better state management and null handling |
src/Aspire.Dashboard/Components/Pages/Traces.razor | Added OverscanCount=100 to reduce scroll jumps in traces grid |
src/Aspire.Dashboard/Components/Pages/TraceDetail.razor | Added OverscanCount=100 to reduce scroll jumps in trace details grid |
src/Aspire.Dashboard/Components/Pages/StructuredLogs.razor | Added OverscanCount=100 to reduce scroll jumps in logs grid |
src/Aspire.Dashboard/Components/Pages/StructuredLogs.razor.cs | Added trace logging for debugging data updates |
src/Aspire.Dashboard/Components/Pages/Resources.razor | Added OverscanCount=100 to reduce scroll jumps in resources grid |
Doesn't seem to work for structured logs? Grabacion.de.pantalla.2025-07-31.a.la.s.12.36.10.p.m.mov |
I don’t understand your video. Structured logs is correctly scrolled to the bottom when the page is navigated to or refreshed in it. what is it showing that doesn’t work? |
72b6c81
to
c5fc90a
Compare
/backport to release/9.4 |
Started backporting to release/9.4: https://github.com/dotnet/aspire/actions/runs/16791008233 |
Description
I noticed that scrolling to the bottom of main page content was broken on structured logs and traces. This broke in the most recent FluentUI update.
Also, when scrolling these grids the scroll bar position scrolling jumps around a lot. I think this bug has been around a while.
This PR improves scrolling behavior:
Checklist
<remarks />
and<code />
elements on your triple slash comments?doc-idea
templatebreaking-change
templatediagnostic
template