Skip to content

Commit

Permalink
Fix scale transform on Android
Browse files Browse the repository at this point in the history
Summary:
cc kmagiera astreet
Closes #9251

Differential Revision: D3679466

Pulled By: astreet

fbshipit-source-id: bd4262169827151ed584f7f8d167f9e6b8d533af
  • Loading branch information
janicduplessis authored and Facebook Github Bot 9 committed Aug 6, 2016
1 parent 3feef3f commit 12fb313
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit 12fb313

Please sign in to comment.