You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@weex.apache.org by so...@apache.org on 2017/03/17 07:11:16 UTC

[12/40] incubator-weex git commit: * [ios] add comment

* [ios] add comment


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

Branch: refs/heads/0.12-dev
Commit: e6004c98450f2316ba3705247eaac3ec0aa3bafb
Parents: 8d4407a
Author: acton393 <zh...@gmail.com>
Authored: Wed Mar 15 11:43:41 2017 +0800
Committer: acton393 <zh...@gmail.com>
Committed: Wed Mar 15 11:43:41 2017 +0800

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


http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/e6004c98/ios/sdk/WeexSDK/Sources/Module/WXAnimationModule.m
----------------------------------------------------------------------
diff --git a/ios/sdk/WeexSDK/Sources/Module/WXAnimationModule.m b/ios/sdk/WeexSDK/Sources/Module/WXAnimationModule.m
index 88ad63b..6cd4ad9 100644
--- a/ios/sdk/WeexSDK/Sources/Module/WXAnimationModule.m
+++ b/ios/sdk/WeexSDK/Sources/Module/WXAnimationModule.m
@@ -85,6 +85,7 @@
     } else if ([_animationInfo.propertyName isEqualToString:@"opacity"]) {
         _animationInfo.target.view.layer.opacity = [_animationInfo.toValue floatValue];
     } else if ([_animationInfo.propertyName isEqualToString:@"bounds"]) {
+        //set the layer bounds
         if(strcmp([_animationInfo.toValue objCType], @encode(CGRect)) == 0) {
             _animationInfo.target.view.layer.bounds = [_animationInfo.toValue CGRectValue];
         }