Permalink
Browse files

Fix scale transform on Android

Summary:
cc kmagiera astreet
Closes #9251

Differential Revision: D3679466

Pulled By: astreet

fbshipit-source-id: bd4262169827151ed584f7f8d167f9e6b8d533af
  • Loading branch information...
1 parent 3feef3f commit 12fb313e549ec50c49faae12a494200a608af3a8 @janicduplessis janicduplessis committed with Facebook Github Bot 9 Aug 6, 2016
Showing with 3 additions and 1 deletion.
  1. +3 −1 ReactAndroid/src/main/java/com/facebook/react/uimanager/TransformHelper.java
@@ -65,7 +65,9 @@ public static void processTransform(ReadableArray transforms, double[] result) {
helperMatrix,
convertToRadians(transform, transformType));
} else if ("scale".equals(transformType)) {
- MatrixMathHelper.applyScaleZ(helperMatrix, transform.getDouble(transformType));
+ double scale = transform.getDouble(transformType);
+ MatrixMathHelper.applyScaleX(helperMatrix, scale);
+ MatrixMathHelper.applyScaleY(helperMatrix, scale);
} else if ("scaleX".equals(transformType)) {
MatrixMathHelper.applyScaleX(helperMatrix, transform.getDouble(transformType));
} else if ("scaleY".equals(transformType)) {

0 comments on commit 12fb313

Please sign in to comment.