Fix scale transform on Android

Summary:
cc kmagiera astreet
Closes https://github.com/facebook/react-native/pull/9251

Differential Revision: D3679466

Pulled By: astreet

fbshipit-source-id: bd4262169827151ed584f7f8d167f9e6b8d533af
This commit is contained in:
Janic Duplessis
2016-08-05 17:36:23 -07:00
committed by Facebook Github Bot 9
parent 3feef3ff72
commit 12fb313e54

View File

@@ -65,7 +65,9 @@ public class TransformHelper {
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)) {