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

Don't set LottieDrawable bounds from within itself #1713

Merged
merged 3 commits into from
Dec 28, 2020
Merged

Conversation

gpeal
Copy link
Collaborator

@gpeal gpeal commented Dec 27, 2020

Drawables should provide intrinsic bounds to its consumers and should respect the bounds set on it. LottieDrawable was not conforming to this because it was settings its own bounds to the composition bounds. This caused issues like that reported in #1542.

Fixes #1542

@LottieSnapshotBot
Copy link

Snapshot Tests
28: Report Diff

@LottieSnapshotBot
Copy link

Snapshot Tests
28: Report Diff

@LottieSnapshotBot
Copy link

Snapshot Tests
28: Report Diff

@gpeal gpeal merged commit c9c9203 into master Dec 28, 2020
@gpeal gpeal deleted the gpeal/set-bounds branch December 28, 2020 02:27
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

Successfully merging this pull request may close these issues.

LottieDrawable setBounds() method does not scale or position drawable
2 participants