CarouselView position is not correct on iOS when ItemsSource contains only 1 item #12425
Labels
area-controls-collectionview
CollectionView, CarouselView, IndicatorView
delighter-sc
migration-compatibility
Xamarin.Forms to .NET MAUI Migration, Upgrade Assistant, Try-Convert
partner/cat 😻
this is an issue that impacts one of our partners or a customer our advisory team is engaged with
platform/iOS 🍎
s/triaged
Issue has been reviewed
t/bug
Something isn't working
Milestone
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
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
The text was updated successfully, but these errors were encountered: