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 authored and Facebook Github Bot 9 committed 2016-08-05 17:43:31 -07:00
1 parent 3feef3ff72
commit 12fb313e54
1 file changed
+3 -1
@@ -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)) {