Repository navigation
Stabilize Virtualize mid-list scroll setup - #69465
Merged
ilonatommy merged 1 commit intoSep 25, 2026
Merged
Conversation
Contributor
There was a problem hiding this comment.
Copilot review overview
🟢 Approval recommended
No unresolved review issues were identified.
Review effort: Lite
Findings: None
What changed in this PR
Stabilizes Virtualize mid-list scroll setup by preventing delayed anchoring from falsely accepting the list tail.
Changes:
- Restricts valid
scrollTopvalues to 4000–6000. - Reissues the mid-list scroll when rendering shifts outside that range.
| File | Description |
|---|---|
src/Components/test/E2ETest/Tests/VirtualizationTest.cs |
Strengthens shared mid-list scroll setup. |
💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.
oroztocil
approved these changes
Sep 25, 2026
This was referenced Sep 26, 2026
Member
|
@ilonatommy I think we wnat to backport this to net11. Flaky failure also seen there. /backport to release/11.0 |
Contributor
|
Started backporting to |
5 of 10 tasks
wtgodbe
pushed a commit
that referenced
this pull request
Oct 6, 2026
Co-authored-by: Ilona Tomkowicz <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
AnchorMode_DeleteBelowViewport_ViewportStaysStablefailed 3 times recently during the test's setup. Also reported in #69425 (comment).This change stabilizes it by ensuring its setup actually positions the viewport in the middle of the list before deleting items from the bottom.
Background
#69310 changed
VirtualizeEnd anchoring so the initial render converges to the tail, which is the intended behavior. This exposed a race in the existing test setup:scrollTop = 5000ScrollMidListAndWaitForRenderpreviously accepted anyscrollTop > 4000, so the tail position around49700incorrectly satisfied the condition.The resulting failure was:
At item
995, the viewport is at the tail. Deleting the final ten items removes items990-999, including the visible anchor. Item985becoming visible is expected - the test was no longer checking deletion below the viewport.Fix
Make sure the "middle" is real middle, not the end of the list.
4000 < scrollTop < 6000is a newly defined "middle" now.