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

CollectionView ScrollTo not working properly with dynamic size children (e.g. Expanders) #27193

Open
gchapeaux opened this issue Jan 16, 2025 · 1 comment
Labels
area-controls-collectionview CollectionView, CarouselView, IndicatorView platform/android 🤖 s/triaged Issue has been reviewed s/verified Verified / Reproducible Issue ready for Engineering Triage t/bug Something isn't working
Milestone

Comments

@gchapeaux
Copy link

Description

This bug report was opened following this question on StackOverflow.

I have a CollectionView bound to a Collection of objects. The ItemTemplate of this CollectinView consists in a single Expander. I want to implement the following behavior :

  • By default all the Expanders are not expanded
  • When clicking an Expander header, it opens it, closes every other expanded ones, and then scrolls to the expander so it ends up at the top of the list (or as high as possible if there is not enough objects below)

However it doesn't work quite as expected, as I am meeting two issues :

  • When scrolling to an expander, the view doesn't always end up at the correct position, and it seems to scroll too far down (for example, when clicking the 1st expander of the list, then the 2nd)
  • It seems something is causing the expanding of a second expander when expanding an expander and there are enough items in the Collection (in my Minimal reproducible example, when expanding the n-th expander it expands the n+15-th as well).

Steps to Reproduce

No response

Link to public reproduction project repository

https://github.com/gchapeaux/MRE_ExpanderCV/

Version with bug

9.0.10 SR1

Is this a regression from previous behavior?

Not sure, did not test other versions

Last version that worked well

Unknown/Other

Affected platforms

Android

Affected platform versions

No response

Did you find any workaround?

No response

Relevant log output

@gchapeaux gchapeaux added the t/bug Something isn't working label Jan 16, 2025
@Zhanglirong-Winnie Zhanglirong-Winnie added s/verified Verified / Reproducible Issue ready for Engineering Triage s/triaged Issue has been reviewed labels Jan 17, 2025
@Zhanglirong-Winnie
Copy link

This issue has been verified Visual Studio 17.13 Preview 2.1 (9.0.30 & 9.0.10 & 9.0.0). Can repro this issue on Android platform.

@samhouts samhouts added platform/android 🤖 area-controls-collectionview CollectionView, CarouselView, IndicatorView labels Jan 17, 2025
@StephaneDelcroix StephaneDelcroix added this to the Backlog milestone Jan 18, 2025
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 platform/android 🤖 s/triaged Issue has been reviewed s/verified Verified / Reproducible Issue ready for Engineering Triage t/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants