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 does not work [Windows11, Android11/12, iOS not tested] dotnet --version: 6.0.400 #9920

Closed
leoderja opened this issue Sep 5, 2022 · 3 comments
Labels
area-controls-collectionview CollectionView, CarouselView, IndicatorView platform/android 🤖 platform/windows 🪟 s/needs-info Issue needs more info from the author t/bug Something isn't working

Comments

@leoderja
Copy link

leoderja commented Sep 5, 2022

Description

ScrollTo method is not working.

Steps to Reproduce

Please, see the Link to public reproduction project repository

It has a 1) CollectionView filled with 40 items and 2) a Button with this code attached on "Clicked" event handler:

cvItemCollection.ScrollTo(25, position: ScrollToPosition.MakeVisible);

Link to public reproduction project repository

https://github.com/leoderja/MAUI_CollectionView_ScrollTo

Version with bug

6.0.400

Last version that worked well

Unknown/Other

Affected platforms

Android, Windows

Affected platform versions

Android 11 / 12, Windows 11

Did you find any workaround?

No workarounds

Relevant log output

No
@leoderja leoderja added the t/bug Something isn't working label Sep 5, 2022
@jsuarezruiz jsuarezruiz added the area-controls-collectionview CollectionView, CarouselView, IndicatorView label Sep 6, 2022
@mattleibow
Copy link
Member

You say the ScrollTo method is not working. Could you describe what is happening? Crash? Not scrolling? Scrolling to a wrong item?

Also, in your repro project, I see you have the CollectionView in a ScrollView. What happens if you take the CV out of the SV?

@mattleibow mattleibow added the s/needs-info Issue needs more info from the author label Sep 6, 2022
@ghost
Copy link

ghost commented Sep 6, 2022

Hi @leoderja. We have added the "s/needs-info" label to this issue, which indicates that we have an open question for you before we can take further action. This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time.

@leoderja
Copy link
Author

leoderja commented Sep 7, 2022

Hi matt,
CV out of the SV, scrolls well with the ScrollTo method...
Thank you for your feedback and sorry for the inconveniences..

@leoderja leoderja closed this as completed Sep 7, 2022
@ghost ghost locked as resolved and limited conversation to collaborators Oct 7, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-controls-collectionview CollectionView, CarouselView, IndicatorView platform/android 🤖 platform/windows 🪟 s/needs-info Issue needs more info from the author t/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants