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/02/28 02:30:03 UTC

[23/50] incubator-weex git commit: * [ios] add viewHeight for pulling down event

* [ios] add viewHeight for pulling down event


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

Branch: refs/heads/0.11-dev
Commit: a1a0b69a533f5735ccd7eeec6750884529d158ac
Parents: 192c5c7
Author: acton393 <zh...@gmail.com>
Authored: Wed Feb 22 17:19:18 2017 +0800
Committer: acton393 <zh...@gmail.com>
Committed: Wed Feb 22 17:19:18 2017 +0800

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


http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/a1a0b69a/ios/sdk/WeexSDK/Sources/Component/WXScrollerComponent.m
----------------------------------------------------------------------
diff --git a/ios/sdk/WeexSDK/Sources/Component/WXScrollerComponent.m b/ios/sdk/WeexSDK/Sources/Component/WXScrollerComponent.m
index c418dc5..5b8fe9a 100644
--- a/ios/sdk/WeexSDK/Sources/Component/WXScrollerComponent.m
+++ b/ios/sdk/WeexSDK/Sources/Component/WXScrollerComponent.m
@@ -428,6 +428,7 @@ WX_EXPORT_METHOD(@selector(resetLoadmore))
         [_refreshComponent pullingdown:@{
             DISTANCE_Y: @(fabs(scrollView.contentOffset.y - _lastContentOffset.y)),
             PULLING_DISTANCE: @(scrollView.contentOffset.y),
+            VIEW_HEIGHT: @(_refreshComponent.view.frame.size.height),
             @"type":@"pullingdown"
             }];
     }