Skip to content

[release/11.0] Fix Virtualize jumping away rom the bottom - #70019

Merged
wtgodbe merged 1 commit into
release/11.0from
backport/pr-69926-to-release/11.0
Nov 3, 2026
Merged

wtgodbe merged 1 commit into
release/11.0from
backport/pr-69926-to-release/11.0

Conversation

@github-actions

@github-actions github-actions Bot commented Oct 23, 2026 •

Copy link
Copy Markdown
Contributor

Backport of #69926 to release/11.0

/cc @ilonatommy

Fix Virtualize jumping away rom the bottom

Keep the end scroll when older log history is loaded.

Description

With end anchoring, Virtualize can scroll to the bottom and then jump back to an old item. An old scroll correction runs after the bottom scroll and undoes it.

Clear that correction when scrolling to the bottom. Add a browser test that loads older log history and checks that the bottom scroll is not undone. Also refresh spacer observations when viewport-fill requests were suppressed during anchor restoration, preventing a blank viewport.

Fixes #69823

Customer Impact

Live log/chat views can jump away from the latest items or temporarily show blank space.

Regression?

  • Yes
  • No

End anchoring was introduced in .NET 11.

Risk

  • High
  • Medium
  • Low

Targeted end-anchoring fix with browser regression coverage.

Verification

  • Manual (required)
  • Automated

Verified on #69926 with browser reproduction and a Selenium regression test (10/10 passes with the fix; 10/10 failures without it). Validation has not been rerun on this backport.

Packaging changes reviewed?

  • Yes
  • No
  • N/A

When servicing release/2.3

  • Make necessary changes in eng/PatchConfig.props

* Reproduce automatic loading of older, timestamp-sorted provider history and assert that stale anchor correction cannot undo the bottom pin.

* Fix stale anchor correction undoing Virtualize end pin.

* A request to load visible items can be ignored while Virtualize restores the scroll position. Check again after  restoration so the last items are loaded instead of leaving blank space at the bottom.

* Simplify end-anchor history regression test

Co-authored-by: Copilot App <[email protected]>
Copilot-Session: aff37fd2-5a5e-43e4-a438-446e4254957b

---------

Co-authored-by: Copilot App <[email protected]>
Copilot-Session: aff37fd2-5a5e-43e4-a438-446e4254957b
@github-actions
github-actions Bot requested a review from a team as a code owner October 23, 2026 16:58
@ilonatommy ilonatommy added feature-blazor-virtualization This issue is related to the Blazor Virtualize component area-blazor Includes: Blazor, Razor Components labels Oct 23, 2026
@ilonatommy ilonatommy self-assigned this Oct 23, 2026
@ilonatommy ilonatommy added the Servicing-consider Shiproom approval is required for the issue label Oct 26, 2026
@dotnet-policy-service

Copy link
Copy Markdown
Contributor

Hi @github-actions[bot]. Please make sure you've updated the PR description to use the Shiproom Template. Also, make sure this PR is not marked as a draft and is ready-to-merge.

To learn more about how to prepare a servicing PR click here.

@ilonatommy ilonatommy added Servicing-approved Shiproom has approved the issue and removed Servicing-consider Shiproom approval is required for the issue labels Oct 27, 2026
@dotnet-policy-service

Copy link
Copy Markdown
Contributor

Hi @github-actions[bot]. This PR was just approved to be included in the upcoming servicing release. Somebody from the @dotnet/aspnet-build team will get it merged when the branches are open. Until then, please make sure all the CI checks pass and the PR is reviewed.

@dotnet-policy-service

Copy link
Copy Markdown
Contributor

Looks like this PR hasn't been active for some time and the codebase could have been changed in the meantime.
To make sure no conflicting changes have occurred, please rerun validation before merging. You can do this by leaving an /azp run comment here (requires commit rights), or by simply closing and reopening.

@dotnet-policy-service dotnet-policy-service Bot added the pending-ci-rerun When assigned to a PR indicates that the CI checks should be rerun label Nov 3, 2026
@wtgodbe
wtgodbe merged commit ed4619f into release/11.0 Nov 3, 2026
65 checks passed
@wtgodbe
wtgodbe deleted the backport/pr-69926-to-release/11.0 branch November 3, 2026 18:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-blazor Includes: Blazor, Razor Components feature-blazor-virtualization This issue is related to the Blazor Virtualize component pending-ci-rerun When assigned to a PR indicates that the CI checks should be rerun Servicing-approved Shiproom has approved the issue

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants