-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
CarouselView layout bugs in iOS #18223
Comments
Bug is the same in dotnet 8 rc2 |
Seems like this may be triggered by |
I see similar issues, and changing |
I encountered similar issues and found that rolling back the changes from #15652 in commit 20097e8 fixed the issue for me (i.e. src/Controls/src/Core/Handlers/Items/ItemsViewHandler.iOS.cs It might be useful if someone could repeat this for the reproduction repo provided by @halfninja. I have not been successful in building it for unrelated issues ( |
Thanks for investigating @Kamholtz. I might try a workaround of overriding the handler, or failing that, copying CarouselView wholesale into my project, where I can tweak and see what helps. Will update if I figure anything out. |
We've added this issue to our backlog, and we will work to address it as time and resources allow. If you have any additional information or questions about this issue, please leave a comment. For additional info about issue management, please read our Triage Process. |
With this "loop" option set to false, somehow also the transition to a new carousel item is slow and ugly. On a real device it is almost not visible, but it runs fluently when "loop = true". |
Can confirm that setting Loop to "True" worked-around the issue for me, would prefer if it didn't loop though. |
For the people who don't want to use the CustomItemsViewHandler.cs
Then add the handler in your MauiProgram.cs:
|
Description
A basic CarouselView, in a fresh .NET MAUI project, with 4 sample items, will render as expected on Windows and Android. On iOS the initial layout is off the bottom of the screen, and then when dragging starts it relayouts, but the content is laid out too high and clips off the top of the screen.
Carousel.mp4
Steps to Reproduce
Link to public reproduction project repository
https://github.com/halfninja/CarouselDemo
Version with bug
7.0.96
Is this a regression from previous behavior?
Yes, this used to work in Xamarin.Forms
Last version that worked well
Unknown/Other
Affected platforms
iOS
Affected platform versions
Tested iOS 14 and 17
Did you find any workaround?
Remove
Loop="False"
if you can deal with looping.Relevant log output
This gets logged after you start dragging and it figures out the correct layout
The text was updated successfully, but these errors were encountered: