Skip to content
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

Bug - Image height is wrong in some cases in OdsHorizontalCard #445

Closed
florentmaitre opened this issue Mar 1, 2023 · 0 comments · Fixed by #461
Closed

Bug - Image height is wrong in some cases in OdsHorizontalCard #445

florentmaitre opened this issue Mar 1, 2023 · 0 comments · Fixed by #461

Comments

@florentmaitre
Copy link
Member

To reproduce, in CardHorizontal.kt replace:

image = rememberAsyncImagePainter(
    model = recipe.imageUrl,
    placeholder = painterResource(id = R.drawable.placeholder),
    error = painterResource(id = R.drawable.placeholder)
),

with:

image = rememberAsyncImagePainter(
    model = ImageRequest.Builder(context)
        .data(recipe.imageUrl)
        .size(Size(800, 800))
        .build(),
    placeholder = painterResource(id = R.drawable.placeholder),
    error = painterResource(id = R.drawable.placeholder)
),

Screenshot_20230301_180751

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants