Skip to content

Conversation

@Ahamed-Ali
Copy link
Contributor

@Ahamed-Ali Ahamed-Ali commented Jan 10, 2025

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

  • Android
  • Windows
  • iOS
  • Mac

Screenshot

Before Issue Fix After Issue Fix

@dotnet-policy-service dotnet-policy-service bot added the community ✨ Community Contribution label Jan 10, 2025
@Ahamed-Ali
Copy link
Contributor Author

@dotnet-policy-service agree company="Syncfusion, Inc."

@vishnumenon2684 vishnumenon2684 added the partner/syncfusion Issues / PR's with Syncfusion collaboration label Jan 10, 2025
@Ahamed-Ali
Copy link
Contributor Author

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

@rmarinho
Copy link
Member

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 3 pipeline(s).

@Ahamed-Ali Ahamed-Ali marked this pull request as ready for review January 10, 2025 17:09
@Ahamed-Ali Ahamed-Ali requested a review from a team as a code owner January 10, 2025 17:09
@jsuarezruiz
Copy link
Contributor

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 3 pipeline(s).

@Ahamed-Ali Ahamed-Ali force-pushed the fix-27025 branch 2 times, most recently from 2c8d2d7 to b3c0c0d Compare February 24, 2025 06:29
@jsuarezruiz
Copy link
Contributor

/rebase

@jsuarezruiz
Copy link
Contributor

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 3 pipeline(s).

@jsuarezruiz
Copy link
Contributor

/rebase

@jsuarezruiz
Copy link
Contributor

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 3 pipeline(s).

@jsuarezruiz
Copy link
Contributor

/rebase

@bhavanesh2001
Copy link
Contributor

@Ahamed-Ali If #29719 is merged before this, you may have to adjust your changes here accordingly.

@jsuarezruiz
Copy link
Contributor

/azp run MAUI-UITests-public

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@PureWeen PureWeen added this to the .NET 9 SR9 milestone Jun 9, 2025
@PureWeen PureWeen moved this from Todo to Ready To Review in MAUI SDK Ongoing Jun 9, 2025
Copy link
Contributor

@bhavanesh2001 bhavanesh2001 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes seem fine based on our current layout creation.

@mattleibow mattleibow requested a review from jsuarezruiz June 26, 2025 23:17
@mattleibow mattleibow dismissed jsuarezruiz’s stale review June 26, 2025 23:18

Test were already added. Clarified.

@PureWeen PureWeen changed the base branch from main to inflight/current June 28, 2025 02:02
@PureWeen PureWeen merged commit b46c65c into dotnet:inflight/current Jun 28, 2025
79 checks passed
@github-project-automation github-project-automation bot moved this from Ready To Review to Done in MAUI SDK Ongoing Jun 28, 2025
github-actions bot pushed a commit that referenced this pull request Jun 29, 2025
…rking with CV2 (#27056)

* Fixed the ItemSpacing issue in CV2

* reenabled the test

* changed the fix based on conflicts file

* Optimized the fix in the LayoutFactory2
github-actions bot pushed a commit that referenced this pull request Jun 29, 2025
…rking with CV2 (#27056)

* Fixed the ItemSpacing issue in CV2

* reenabled the test

* changed the fix based on conflicts file

* Optimized the fix in the LayoutFactory2
github-actions bot pushed a commit that referenced this pull request Jul 1, 2025
…rking with CV2 (#27056)

* Fixed the ItemSpacing issue in CV2

* reenabled the test

* changed the fix based on conflicts file

* Optimized the fix in the LayoutFactory2
github-actions bot pushed a commit that referenced this pull request Jul 2, 2025
…rking with CV2 (#27056)

* Fixed the ItemSpacing issue in CV2

* reenabled the test

* changed the fix based on conflicts file

* Optimized the fix in the LayoutFactory2
github-actions bot pushed a commit that referenced this pull request Jul 2, 2025
…rking with CV2 (#27056)

* Fixed the ItemSpacing issue in CV2

* reenabled the test

* changed the fix based on conflicts file

* Optimized the fix in the LayoutFactory2
github-actions bot pushed a commit that referenced this pull request Jul 8, 2025
…rking with CV2 (#27056)

* Fixed the ItemSpacing issue in CV2

* reenabled the test

* changed the fix based on conflicts file

* Optimized the fix in the LayoutFactory2
github-actions bot pushed a commit that referenced this pull request Jul 8, 2025
…rking with CV2 (#27056)

* Fixed the ItemSpacing issue in CV2

* reenabled the test

* changed the fix based on conflicts file

* Optimized the fix in the LayoutFactory2
github-actions bot pushed a commit that referenced this pull request Jul 9, 2025
…rking with CV2 (#27056)

* Fixed the ItemSpacing issue in CV2

* reenabled the test

* changed the fix based on conflicts file

* Optimized the fix in the LayoutFactory2
@github-actions github-actions bot locked and limited conversation to collaborators Jul 28, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-controls-collectionview CollectionView, CarouselView, IndicatorView community ✨ Community Contribution partner/syncfusion Issues / PR's with Syncfusion collaboration platform/ios

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

[iOS] CarouselView ItemSpacing property in ItemsLayout not working with CV2

7 participants