Skip to content

[.NET10]I9-Scroll mode "KeepLastItemInView" does not keep the last item at the end of the displayed list when adding new items. #28716

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

Open
Zhanglirong-Winnie opened this issue Mar 31, 2025 · 9 comments · May be fixed by #28720
Labels
area-controls-collectionview CollectionView, CarouselView, IndicatorView csi-new i/regression This issue described a confirmed regression on a currently supported version platform/iOS 🍎 platform/macOS 🍏 macOS / Mac Catalyst t/bug Something isn't working

Comments

@Zhanglirong-Winnie
Copy link

Zhanglirong-Winnie commented Mar 31, 2025

Description

I9-Scroll mode "KeepLastItemInView" does not keep the last item at the end of the displayed list when adding new items.

Affected case:
I9 -Control scroll position when new items are added.

Steps to Reproduce

  1. Deploy https://devdiv.visualstudio.com/Pkgs/_git/VS.TestAssets.Xaml?path=/Assets/Projects/ManualMauiTests on Mac/iOS platform.
  2. Click I9_Scrolling -> Scroll mode when adding items
  3. Set UpdatingScrollMode to KeepLastItemInView

Actual Behavior:
Scroll mode "KeepLastItemInView" does not keep the last item at the end of the displayed list when adding new items.
Maccatalyst:
Image
iOS:
Image

Expected Behavior:
The last item was kept in the list displayed when new items are added.
Image

Link to public reproduction project repository

https://devdiv.visualstudio.com/Pkgs/_git/VS.TestAssets.Xaml?path=/Assets/Projects/ManualMauiTests

Version with bug

10.0.0-preview.3.25176.18

Is this a regression from previous behavior?

Yes, this is a regression. The issue cannot be repro on 10.0.0-preview.2.25153.5 & 9.0.50 & 9.0.40 & 9.0.0 & 8.0.100.

Affected platforms

iOS, macOS

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.

@Zhanglirong-Winnie Zhanglirong-Winnie added the i/regression This issue described a confirmed regression on a currently supported version label Mar 31, 2025
@jfversluis jfversluis added the area-controls-collectionview CollectionView, CarouselView, IndicatorView label Mar 31, 2025
@jfversluis jfversluis added this to the .NET 10.0-preview4 milestone Mar 31, 2025
@PureWeen
Copy link
Member

@Zhanglirong-Winnie can you validate this against nightly? So, the MAUI 9.0.60 builds?

@kubaflo
Copy link
Contributor

kubaflo commented Mar 31, 2025

I think the issue is that the CV2 doesn't implement KeepLastItemInView

@Zhanglirong-Winnie
Copy link
Author

Hi, @PureWeen
I verified that this issue does not repro on the latest nightly version 9.0.60-ci.main.25176.1.

@PureWeen
Copy link
Member

PureWeen commented Apr 1, 2025

@Zhanglirong-Winnie is this CollectionView1 or COllectionView2?

Can you retest on both just to be sure
It looks like this behavior isn't implemented on CV2

So I'm curious if you were testing on CV2 here and then switched to CV1 for the test of the platforms

@Zhanglirong-Winnie
Copy link
Author

Hi @PureWeen
Thank you for your reply again.
I have verified this issue again in .NET10, and it can be reproduced on both CV1 and CV2 versions.

@PureWeen
Copy link
Member

PureWeen commented Apr 8, 2025

@Zhanglirong-Winnie can you clarify if your validation here applies to CV1 and/or CV2?

Yes, this is a regression. The issue cannot be repro on 10.0.0-preview.2.25153.5 & 9.0.50 & 9.0.40 & 9.0.0 & 8.0.100.

@PureWeen
Copy link
Member

PureWeen commented Apr 8, 2025

This appears to be working fine on 9.0.60-ci.main.25208.3

Image

@Zhanglirong-Winnie
Copy link
Author

@Zhanglirong-Winnie can you clarify if your validation here applies to CV1 and/or CV2?

Yes, this is a regression. The issue cannot be repro on 10.0.0-preview.2.25153.5 & 9.0.50 & 9.0.40 & 9.0.0 & 8.0.100.

This issue repro in both CV1 and CV2 versions 10.0.0-preview.3.25176.18.

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 csi-new i/regression This issue described a confirmed regression on a currently supported version platform/iOS 🍎 platform/macOS 🍏 macOS / Mac Catalyst t/bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants