From 82a4017ecd57694bd57f10650569f7884878bf53 Mon Sep 17 00:00:00 2001 From: Ahmed El-Helw Date: Wed, 31 Aug 2016 14:32:28 -0700 Subject: [PATCH] Don't double clip images in Nodes Summary: Nodes would typically clip its images, and then Fresco would then re-clip as part of ScaleTypeDrawable - in addition to being unnecessary, it's also incorrect, beacuse it causes the image to be smaller than it should be. Reviewed By: sriramramani Differential Revision: D3754778 --- .../java/com/facebook/react/flat/DrawImageWithDrawee.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ReactAndroid/src/main/java/com/facebook/react/flat/DrawImageWithDrawee.java b/ReactAndroid/src/main/java/com/facebook/react/flat/DrawImageWithDrawee.java index f9d37a1b2cb..657520814cc 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/flat/DrawImageWithDrawee.java +++ b/ReactAndroid/src/main/java/com/facebook/react/flat/DrawImageWithDrawee.java @@ -207,6 +207,11 @@ import com.facebook.react.views.imagehelper.MultiSourceHelper.MultiSourceResult; } } + @Override + protected boolean shouldClip() { + return false; + } + @Override public void onSubmit(String id, Object callerContext) { if (mCallback != null && mReactTag != 0) {