-
Notifications
You must be signed in to change notification settings - Fork 670
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
Image displayed at placeholder aspect ratio #1505
Comments
Which version of Compose are you using? |
I've managed to reproduce using Compose 1.1.1, 1.2.0 and 1.3.0-rc01 |
Ran into the same issue trying to workaround #1568. Coil version 2.2.2. Perhaps the solution could be fixed together? |
The bug seems specific for Constraints for my container are: In
But this is unexpected to me. Why should it clamp to the intrinsic width? It should clamp to the max width of the constraints! Something like this is better. Perhaps a bit messy. I'm not acquainted enough with the source code to determine whether this if-else spaghetti is what you really want.
Insn't it better? Equivalently, my issue is worked-around by passing a fixed width, because then |
I can verify that this is still a bug. When using placeholder + ContentScale.FillWidth, the image sizing gets messed up. |
Describe the bug
It appears that using a combination of Placeholder, Crossfade and ContentScale.FillWidth will cause an image to be displayed at the placeholder aspect ratio and not the final image.
To Reproduce
The
test_image
drawable in this case is a 16:9 imageLogs/Screenshots
Version
Reproduced on both 2.0.0 and 2.2.2, using a Pixel 6 Pro on Android 13
The text was updated successfully, but these errors were encountered: