material-components / material-components-android

Modular and customizable Material Design UI components for Android
Apache License 2.0
16.38k stars 3.07k forks source link

[Carousel] Material Components Carousel will swallow a portion of the right edge of the submitted image, while the left side is not. #4305

Open ArcticFoxPro opened 1 month ago

ArcticFoxPro commented 1 month ago

Description: Material Components Carousel will swallow a portion of the right edge of the submitted image

Screenshot: Please note if the right edge of the following image is covered. I can clearly see that the right side of the picture is partially covered, while the left side is not.

I've always measured more occlusion on the right side than on the left, regardless of the aspect ratio.

The pattern actually displayed Origin image
Screenshot_2024-09-19-15-54-37-449_io.material.catalog-edit.jpg 1726732493206.png

Source code: No need to provide, the M3 Catalog Application can be reproduced

Minimal sample app repro: No need to provide, the M3 Catalog Application can be reproduced

Android API version: 34 (Android 14)

Material Library version: 1.13.0-alpha06

Device: Xiaomi 14 Pro with Android 14

To help us triage faster, please check to make sure you are using the latest version of the library.

We also happily accept pull requests.

leticiarossi commented 1 month ago

@hunterstich or @imhappi is this the expected behavior?

michael-winkler commented 2 weeks ago

Should really be fixed since this happens also in catalog app