[iOS, MacCatalyst] CarouselView sizing issue when nested in StackLayout #12911
Labels
area-controls-collectionview
CollectionView, CarouselView, IndicatorView
area-layout
StackLayout, GridLayout, ContentView, AbsoluteLayout, FlexLayout, ContentPresenter
delighter-sc
layout-stack
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
s/verified
Verified / Reproducible Issue ready for Engineering Triage
t/bug
Something isn't working
Milestone
Description
The size of CarouselView is calculated wrong when it's nested in StackLayout. It seems like CarouselView size is constrained by page (or even screen) size instead of the parent element's size. It works well on Android. MacCatalyst is also affected.
Here is a code of a sample page demonstrating the issue:
I didn't test it on Windows and other platforms like Tizen/Linux.
Side note: My assumption is that the there is some problem related to ItemsView because similar bugs for CollectionView has been reported and both CollectionView and CarouselView are derived from ItemsView.
Steps to Reproduce
Link to public reproduction project repository
https://github.com/AlexeyStarkov/MAUI_CarouselView_Sizing_Issue
#12911 (comment)
Version with bug
.NET 6.0,
.NET 7.0
.NET 8.0 (current)
Last version that worked well
Unknown/Other
Affected platforms
iOS, macOS
Affected platform versions
iOS 16.2, macOS Ventura 13.1
Did you find any workaround?
No response
Relevant log output
No response
The text was updated successfully, but these errors were encountered: