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

ListView ScrollTo position always remains at the start even when set to Center or End #26857

Open
PriyadharshniM opened this issue Dec 30, 2024 · 1 comment · May be fixed by #26922
Open

ListView ScrollTo position always remains at the start even when set to Center or End #26857

PriyadharshniM opened this issue Dec 30, 2024 · 1 comment · May be fixed by #26922
Labels
partner/syncfusion Issues / PR's with Syncfusion collaboration platform/windows 🪟 s/triaged Issue has been reviewed s/verified Verified / Reproducible Issue ready for Engineering Triage t/bug Something isn't working

Comments

@PriyadharshniM
Copy link

Description

The ListView.ScrollTo method fails to correctly scroll the selected item to the center or end of the ListView on the Windows platform.
Notes: On Android and iOS, the behavior works as expected.

Output

Windows.mp4

Steps to Reproduce

  1. Run the attached sample project on Windows.
  2. Select any item from the ListView.
  3. Alternatively, use the "Up" and "Down" buttons to change the SelectedItem in the ListView.
  4. Observe that the scroll position always remains at the start, regardless of the ScrollToPosition set.

Sample

ListViewSample.zip

Expected Outcome

When a new item is selected in the ListView, the ScrollTo method should scroll the SelectedItem to the specified ScrollToPosition.

Actual Outcome

The scroll position always remains at the start and fails to align the SelectedItem to the center or end of the list on Windows.

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

Unknown/Other

Affected platforms

Windows

Affected platform versions

Windows SDK 10.0.22621.0

Did you find any workaround?

Adding a small delay (await Task.Delay(50);) before calling ScrollTo mitigates the issue occasionally but does not consistently work on Windows. The workaround works reliably on other platforms like Android and iOS.

Relevant log output

NA
@PriyadharshniM PriyadharshniM added the t/bug Something isn't working label Dec 30, 2024
@RoiChen001 RoiChen001 added s/triaged Issue has been reviewed s/verified Verified / Reproducible Issue ready for Engineering Triage platform/windows 🪟 labels Dec 30, 2024
@RoiChen001
Copy link

I can repro this issue at Windows platform on the latest 17.13.0 Preview 2.1(9.0.14 & 9.0.21).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
partner/syncfusion Issues / PR's with Syncfusion collaboration platform/windows 🪟 s/triaged Issue has been reviewed s/verified Verified / Reproducible Issue ready for Engineering Triage t/bug Something isn't working
Projects
None yet
3 participants