Skip to content
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

[iOS]VerticalOffset Not Reset to Zero After Clearing ItemSource in CollectionView #26798

Open
devanathan-vaithiyanathan opened this issue Dec 24, 2024 · 2 comments · May be fixed by #26818
Open
Labels
area-controls-collectionview CollectionView, CarouselView, IndicatorView collectionview-cv2 partner/syncfusion Issues / PR's with Syncfusion collaboration platform/iOS 🍎 s/triaged Issue has been reviewed s/verified Verified / Reproducible Issue ready for Engineering Triage t/bug Something isn't working

Comments

@devanathan-vaithiyanathan
Copy link
Contributor

devanathan-vaithiyanathan commented Dec 24, 2024

Description

VerticalOffset are not reset to 0 when ItemSource is cleared or items are removed. However, after adding items back to the ItemSource, the offset values update correctly when scrolling.

Steps to Reproduce

  1. Run the attached sample.
  2. Click the Fill button.
  3. Click the Empty button.
  4. Check the VerticalOffset value after clearing. It does not reset to zero.
  5. VerticalOffsetBug.zip

Expected: Offsets reset to 0 after clearing items from ItemSource.
Actual: Offsets retain old values when items are cleared or removed but update correctly after items are added back and scrolling occurs.

Screen.Recording.2024-12-24.at.3.21.59.PM.mov

Link to public reproduction project repository

No response

Version with bug

9.0.21 SR2.1

Is this a regression from previous behavior?

Not sure, did not test other versions

Last version that worked well

No response

Affected platforms

macOS, iOS

Affected platform versions

iOS 18.0, mac 15.1

Did you find any workaround?

No response

Relevant log output

@devanathan-vaithiyanathan devanathan-vaithiyanathan added the t/bug Something isn't working label Dec 24, 2024
Copy link

We've found some similar issues:

If any of the above are duplicates, please consider closing this issue out and adding additional context in the original issue.

Note: You can give me feedback by 👍 or 👎 this comment.

@devanathan-vaithiyanathan devanathan-vaithiyanathan changed the title VerticalOffset Not Reset to Zero After Clearing ItemSource in CollectionView [iOS]VerticalOffset Not Reset to Zero After Clearing ItemSource in CollectionView Dec 24, 2024
@Zhanglirong-Winnie Zhanglirong-Winnie added s/verified Verified / Reproducible Issue ready for Engineering Triage s/triaged Issue has been reviewed labels Dec 25, 2024
@Zhanglirong-Winnie
Copy link

Zhanglirong-Winnie commented Dec 25, 2024

This issue has been verified using Visual Studio Code 1.96.2 (9.0.21 & 9.0.10 & 9.0.0). Can repro this issue on iOS and Android platforms. This issue also reproes on latest MAUI release 9.0.21 with CollectionView2 handlers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-controls-collectionview CollectionView, CarouselView, IndicatorView collectionview-cv2 partner/syncfusion Issues / PR's with Syncfusion collaboration platform/iOS 🍎 s/triaged Issue has been reviewed s/verified Verified / Reproducible Issue ready for Engineering Triage t/bug Something isn't working
Projects
Status: Todo
5 participants