dotnet / maui

.NET MAUI is the .NET Multi-platform App UI, a framework for building native device applications spanning mobile, tablet, and desktop.
https://dot.net/maui
MIT License
22.05k stars 1.73k forks source link

CarouselView Loop="False" renders incorrectly items ( net8, net9 rc2) #25192

Open bcaceiro opened 2 hours ago

bcaceiro commented 2 hours ago

Description

Using a CarouselView in a .net maui project ( tested with v8.0.91 & .NET9 RC2) withLoop="False"results in an incorrect render. If we setLoop="True" the items are rendered correctly.

WithLoop=True Imgur Image

Using Loop=False

Imgur Image

It happens in 8.0.92 and in .net 9 rc2 The code can be found here: https://github.com/bcaceiro/net9-repros/tree/main/CarouselBug

Steps to Reproduce

  1. Clone https://github.com/bcaceiro/net9-repros/ -> CarouselBug solution
  2. Run with Loop = True
  3. Run with Loop = False
  4. See the differences in rendering ( false is totally broken)

Link to public reproduction project repository

https://github.com/bcaceiro/net9-repros/tree/main/CarouselBug

Version with bug

9.0.0-rc.1.24453.9

Is this a regression from previous behavior?

No, this is something new

Last version that worked well

Unknown/Other

Affected platforms

Android, I was not able test on other platforms

Affected platform versions

Android 14 ( did not test in others)

Did you find any workaround?

No workaround, just setting Loop="True" which is not the desired effect

Relevant log output

No response

similar-issues-ai[bot] commented 2 hours ago

We've found some similar issues:

If any of the above are duplicates, please consider closing this issue out and adding additional context in the original issue.

Note: You can give me feedback by 👍 or 👎 this comment.