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

[DrawablePainter] Ignores Image ContentScale and Alignment since ~v0.26 #1366

Closed
gajicm93 opened this issue Oct 7, 2022 · 1 comment
Closed

Comments

@gajicm93
Copy link

gajicm93 commented Oct 7, 2022

Describe the bug

DrawablePainter only respects its intrinsic size while ignoring Image ContentScale and Alignment

To Reproduce

  1. Create an Image of random size and set to it a DrawablePainter with a drawable of different intrinsic size (different from Image size)
  2. Try to set either ContentScale or Alignment on Image
  3. See that DrawablePaint completely ignores them and keeps displaying its intrinsic size

Expected behavior

DrawablePainter should follow Image ContentScale and Alignment

Screenshots?

/

Environment:

  • Android OS version: Android 13
  • Device: Pixel 4a
  • Accompanist version: v0.26.5-rc

Additional context

My drawable is layer-list with items..

@bentrengrove
Copy link
Collaborator

Fixed in #1368

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

No branches or pull requests

2 participants