Repository: incubator-weex Updated Branches: refs/heads/0.16-dev 1ee3bd659 -> 8a088dfb4
* [ios] set never adjust scrollview contentInset Project: http://git-wip-us.apache.org/repos/asf/incubator-weex/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-weex/commit/8a088dfb Tree: http://git-wip-us.apache.org/repos/asf/incubator-weex/tree/8a088dfb Diff: http://git-wip-us.apache.org/repos/asf/incubator-weex/diff/8a088dfb Branch: refs/heads/0.16-dev Commit: 8a088dfb48643e17bfaef01da25f9229c2ce26be Parents: 1ee3bd6 Author: acton393 <zhangxing610...@gmail.com> Authored: Tue Sep 26 16:46:23 2017 +0800 Committer: acton393 <zhangxing610...@gmail.com> Committed: Tue Sep 26 16:46:23 2017 +0800 ---------------------------------------------------------------------- ios/sdk/WeexSDK/Sources/Component/WXListComponent.m | 3 +++ ios/sdk/WeexSDK/Sources/Component/WXScrollerComponent.m | 3 +++ 2 files changed, 6 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/8a088dfb/ios/sdk/WeexSDK/Sources/Component/WXListComponent.m ---------------------------------------------------------------------- diff --git a/ios/sdk/WeexSDK/Sources/Component/WXListComponent.m b/ios/sdk/WeexSDK/Sources/Component/WXListComponent.m index cb9237f..74516fa 100644 --- a/ios/sdk/WeexSDK/Sources/Component/WXListComponent.m +++ b/ios/sdk/WeexSDK/Sources/Component/WXListComponent.m @@ -155,6 +155,9 @@ _tableView.delegate = self; _tableView.dataSource = self; _tableView.userInteractionEnabled = YES; +#ifdef __IPHONE_11_0 + _tableView.contentInsetAdjustmentBehavior = UIScrollViewContentInsetAdjustmentNever; +#endif } - (void)viewWillUnload http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/8a088dfb/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 306631b..8ef35e4 100644 --- a/ios/sdk/WeexSDK/Sources/Component/WXScrollerComponent.m +++ b/ios/sdk/WeexSDK/Sources/Component/WXScrollerComponent.m @@ -146,6 +146,9 @@ WX_EXPORT_METHOD(@selector(resetLoadmore)) scrollView.showsHorizontalScrollIndicator = _showScrollBar; scrollView.scrollEnabled = _scrollable; scrollView.pagingEnabled = _pagingEnabled; +#ifdef __IPHONE_11_0 + scrollView.contentInsetAdjustmentBehavior = UIScrollViewContentInsetAdjustmentNever; +#endif if (self.ancestorScroller) { scrollView.scrollsToTop = NO;