You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@weex.apache.org by ac...@apache.org on 2017/08/22 08:26:57 UTC

[5/9] incubator-weex git commit: * [ios] add bug fix

* [ios] add bug fix


Project: http://git-wip-us.apache.org/repos/asf/incubator-weex/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-weex/commit/af8f9cd4
Tree: http://git-wip-us.apache.org/repos/asf/incubator-weex/tree/af8f9cd4
Diff: http://git-wip-us.apache.org/repos/asf/incubator-weex/diff/af8f9cd4

Branch: refs/heads/0.16-dev
Commit: af8f9cd48f10bba8a34207115c59dfefe36f7cb6
Parents: 5189d9c
Author: doumafang <do...@gmail.com>
Authored: Mon Aug 21 18:09:58 2017 +0800
Committer: doumafang <do...@gmail.com>
Committed: Mon Aug 21 18:09:58 2017 +0800

----------------------------------------------------------------------
 ios/sdk/WeexSDK/Sources/Module/WXTransition.m | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/af8f9cd4/ios/sdk/WeexSDK/Sources/Module/WXTransition.m
----------------------------------------------------------------------
diff --git a/ios/sdk/WeexSDK/Sources/Module/WXTransition.m b/ios/sdk/WeexSDK/Sources/Module/WXTransition.m
index 9230a27..1b513a5 100644
--- a/ios/sdk/WeexSDK/Sources/Module/WXTransition.m
+++ b/ios/sdk/WeexSDK/Sources/Module/WXTransition.m
@@ -315,7 +315,7 @@
                 transformString = [NSString stringWithFormat:@"rotateY(%lfdeg)",currentValue * 180.0 / M_PI];
             }
             if ([info.propertyName isEqualToString:@"transform.rotation.z"]) {
-                transformString = [NSString stringWithFormat:@"rotateZ(%lfdeg)",currentValue];
+                transformString = [NSString stringWithFormat:@"rotateZ(%lfdeg)",currentValue * 180.0 / M_PI];
             }
             if ([info.propertyName isEqualToString:@"transform.scale.x"]) {
                 transformString = [NSString stringWithFormat:@"scaleX(%lf)",currentValue];