-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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] Fix for CarouselView ItemSpacing property in ItemsLayout not working with CV2 #27056
base: main
Are you sure you want to change the base?
Conversation
Hey there @Ahamed-Ali! Thank you so much for your PR! Someone from the team will get assigned to your PR shortly and we'll get it reviewed. |
@dotnet-policy-service agree company="Syncfusion, Inc." |
Hi @mattleibow, I have fixed the ItemSpacing issue in CarouselViewHandler2.iOS, which resolves the issues on both iOS and macOS. While testing to enable the test case in MacCatalyst, maximizing the window resulted in different behaviors in CV1 and CV2. As a result, I have not enabled the MacCatalyst condition yet. Could you please confirm the correct behavior on macOS—CV1 or CV2? Issue link : #26969 |
/azp run |
Azure Pipelines successfully started running 3 pipeline(s). |
@@ -83,7 +82,10 @@ protected override UICollectionViewLayout SelectLayout() | |||
|
|||
// Create our section layout | |||
var section = NSCollectionLayoutSection.Create(group: group); | |||
section.InterGroupSpacing = itemSpacing; | |||
if (VirtualView.ItemsLayout is LinearItemsLayout linearItemsLayout) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could include a related test?
Root Cause of the issue
The itemSpacing variable is initialized to 0. As a result, itemSpacing remains 0, and no spacing is applied between the items.
Description of Change
To resolve this, apply the correct item spacing from the LinearItemsLayout.
Issues Fixed
Fixes #27025
Tested the behaviour in the following platforms
Screenshot