-
-
Notifications
You must be signed in to change notification settings - Fork 5.4k
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
Disabling animation clipping #1825
Labels
Comments
@gpeal could you please provide any help with this ticket? |
I have same problem. Does any help to fix? |
Still looking for any kind of advice on how to make the animation draw out of bounds. It seems it is getting clipped by bounds defined in JSON and using any of the XML clip parameters does not work. |
I see, it would be greatly appreciated if you could somehow put it on your radar. |
Will do! |
gpeal
added a commit
that referenced
this issue
Jan 16, 2022
…the original composition bounds (#1993) Since the beginning of time, Lottie has only rendered the bounds of the original composition. This PR adds a new API to enable rendering the full animation, even if it extends beyond the original composition bounds. This API defaults to off to retain backwards compatibility. Fixes #1825
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi team,
we have an animation which seems to be clipping at the top for some images. I wonder how we can disable clipping and draw out of the rectangle.
My IOS peer is using
animationView.clipsToBounds = false
which does work pretty well but I am struggling with the clipping in android.I have tried
android:scaleType="centerInside"
andandroid:scaleType="centerCrop"
on lottieAnimationView and for parent ConstraintLayout:android:clipChildren="false"
android:clipToPadding="false"
Is there way how I can avoid the clipping and render out of bounds?
Screenshots
The text was updated successfully, but these errors were encountered: