Skip to content
This repository was archived by the owner on May 1, 2024. It is now read-only.

[Android] Enforce clipping on fast renderer ImageRenderer when using AspectFill#4218

Merged
PureWeen merged 1 commit into3.3.0from
fix-gh4133
Oct 27, 2018
Merged

[Android] Enforce clipping on fast renderer ImageRenderer when using AspectFill#4218
PureWeen merged 1 commit into3.3.0from
fix-gh4133

Conversation

@hartez
Copy link
Copy Markdown
Contributor

@hartez hartez commented Oct 25, 2018

Description of Change

The fix for Android's clipping issues (#3559) broke the fast ImageRenderer when using AspectFill, because the cropping caused by setClipChildren was no longer in play.

This change adds clipping to the boundaries of the ImageView when the ScaleType is set to CENTER_CROP.

Issues Resolved

API Changes

None

Platforms Affected

  • Android

Behavioral/Visual Changes

None

Before/After Screenshots

See #4133 for 'before' screenshots.

After:
screenshot_1540501345

Testing Procedure

Open the Image Gallery in Control Gallery, select the AspectFill test. The image should look like it does in the "after" screenshot above.

PR Checklist

  • Has automated tests
  • Rebased on top of the target branch at time of PR
  • Changes adhere to coding standard

Copy link
Copy Markdown
Contributor

@kingces95 kingces95 left a comment

Choose a reason for hiding this comment

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

Yeah, man. This ain't kindergarten. No drawing outside the lines.

@samhouts
Copy link
Copy Markdown
Contributor

build --uitests

@PureWeen PureWeen added blocker Issue blocks next stable release. Prioritize fixing and reviewing this issue. i/critical i/regression p/Android labels Oct 26, 2018
@PureWeen PureWeen merged commit 9e72c50 into 3.3.0 Oct 27, 2018
@PureWeen PureWeen deleted the fix-gh4133 branch October 27, 2018 03:08
@PureWeen PureWeen added the approved Has two approvals, no pending reviews, and no changes requested label Oct 29, 2018
@PureWeen PureWeen added this to the 3.3.0 milestone Nov 2, 2018
@kingces95 kingces95 mentioned this pull request Nov 2, 2018
4 tasks
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

approved Has two approvals, no pending reviews, and no changes requested blocker Issue blocks next stable release. Prioritize fixing and reviewing this issue. i/regression p/Android

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants