Skip to content

[Android] Improved fix for animation cut off within transformed view hierarchy - #1373

Merged
davidjohnoliver merged 3 commits into
masterfrom
dev/djo/transform-android-fix-4
Aug 19, 2019
Merged

davidjohnoliver merged 3 commits into
masterfrom
dev/djo/transform-android-fix-4

Conversation

@davidjohnoliver

Copy link
Copy Markdown
Contributor

GitHub Issue (If applicable): fixes #1333

PR Type

What kind of change does this PR introduce?

  • Bugfix

What is the current behavior?

Animations translated outside their bounds by an ancestor transform update in a software-bound manner, prone to glitches.

What is the new behavior?

The animations update normally.

PR Checklist

Please check if your PR fulfills the following requirements:

  • Tested code with current supported SDKs
  • Docs have been added/updated which fit documentation template. (for bug fixes / features)
  • Unit Tests and/or UI Tests for the changes have been added (for bug fixes / features) (if applicable)
  • Wasm UI Tests are not showing unexpected any differences. Validate PR Screenshots Compare Test Run results.
  • Contains NO breaking changes
  • Updated the Release Notes
  • Associated with an issue (GitHub or internal)

Other information

Internal Issue (If applicable):

@ghuntley ghuntley added platform/android 🤖 Categorizes an issue or PR as relevant to the Android platform kind/bug Something isn't working labels Aug 13, 2019
}
);

setClipChildren(false); // This is required for animations not to be cut off by transformed ancestor views. (#1333)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems much easier 😀

@davidjohnoliver
davidjohnoliver force-pushed the dev/djo/transform-android-fix-4 branch from e81b790 to d161e31 Compare August 17, 2019 01:21
The previous StaticTransformation workaround left a visual animation glitch on Android 8+ devices under heavy load. (#1333)
…hierarchy

Setting ClipChildren to false ensures animation is still updated outside of its pre-transform bounds.
@davidjohnoliver
davidjohnoliver force-pushed the dev/djo/transform-android-fix-4 branch from e43d1de to 7730783 Compare August 19, 2019 17:51
@davidjohnoliver
davidjohnoliver merged commit ee2ead4 into master Aug 19, 2019
@delete-merged-branch
delete-merged-branch Bot deleted the dev/djo/transform-android-fix-4 branch August 19, 2019 19:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind/bug Something isn't working platform/android 🤖 Categorizes an issue or PR as relevant to the Android platform

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Android] Animated content is cut off/glitchy when RenderTransform translation is applied

3 participants