* [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.11-dev Commit: e6004c98450f2316ba3705247eaac3ec0aa3bafb Parents: 8d4407a Author: acton393 <[email protected]> Authored: Wed Mar 15 11:43:41 2017 +0800 Committer: acton393 <[email protected]> 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]; }
