Skip to content

Conversation

@lynxassistant
Copy link

@lynxassistant lynxassistant bot commented Nov 27, 2025

No description provided.

This commit mainly improves the accuracy of anchor point searching in list component:

1. Added weak_anchor_ref_ field in ItemHolder to store anchor reference ItemHolder for removed ItemHolders.

2. Update anchor reference ItemHolder for all removed on-screen ItemHolders before consuming diff info.

3. In list layout pass, if no valid anchor ItemHolder can be found from all on screen childre, we use the reference anchor ItemHolder as anchor ItemHolder in layout.

4. Add relative unittest and e2e tests.

issue: m-6795355659
@jianliang00 jianliang00 force-pushed the shadow/p/DwwWxx/3.6/fix_list_anchor_1 branch from 1730bfc to a2f98aa Compare November 30, 2025 18:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants