Skip to content

CarouselView position is not correct on iOS when ItemsSource contains only 1 item #12425

@tranb3r

Description

@tranb3r

Description

CarouselView position is not correct on iOS when ItemsSource contains only 1 item.
After scrolling the CarsouelView a few times, suddenly the position is adjusted and it becomes correct.
No issue when there are more than 1 item in the ItemsSource.
No issue on Android.

On my repro: the blue box should be a square ; at first, it's hidden behind the header label ; then it moves to its correct position below the header.

Steps to Reproduce

  1. Create a maui app for Android and iOS
  2. On the MainPage, add a Grid with 2 rows: Label and CarsouselView (with 1 item)
  3. Observe the position of the CarouselView, on app open, and after scrolling the CarouselView a few times

Link to public reproduction project repository

https://github.com/tranb3r/Issues/tree/main/MauiAppCarouselView

Version with bug

7.0 (current)

Last version that worked well

Unknown/Other

Affected platforms

iOS

Affected platform versions

iOS 16.1

Did you find any workaround?

no

Relevant log output

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-controls-collectionviewCollectionView, CarouselView, IndicatorViewdelighter-scmigration-compatibilityXamarin.Forms to .NET MAUI Migration, Upgrade Assistant, Try-Convertpartner/cat 😻this is an issue that impacts one of our partners or a customer our advisory team is engaged withpartner/syncfusionIssues / PR's with Syncfusion collaborationplatform/ioss/triagedIssue has been revieweds/try-latest-versionPlease try to reproduce the potential issue on the latest public versiont/bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions