* [ios] never auto adjust water fall component 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/c76b9385 Tree: http://git-wip-us.apache.org/repos/asf/incubator-weex/tree/c76b9385 Diff: http://git-wip-us.apache.org/repos/asf/incubator-weex/diff/c76b9385 Branch: refs/heads/master Commit: c76b93859e5409459625addf5bab0fe8a0bd50f1 Parents: 55f18b1 Author: acton393 <zhangxing610...@gmail.com> Authored: Tue Sep 26 17:00:04 2017 +0800 Committer: acton393 <zhangxing610...@gmail.com> Committed: Tue Sep 26 17:00:04 2017 +0800 ---------------------------------------------------------------------- ios/sdk/WeexSDK/Sources/Component/Recycler/WXRecyclerComponent.m | 3 +++ 1 file changed, 3 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/c76b9385/ios/sdk/WeexSDK/Sources/Component/Recycler/WXRecyclerComponent.m ---------------------------------------------------------------------- diff --git a/ios/sdk/WeexSDK/Sources/Component/Recycler/WXRecyclerComponent.m b/ios/sdk/WeexSDK/Sources/Component/Recycler/WXRecyclerComponent.m index 1164472..b8ae634 100644 --- a/ios/sdk/WeexSDK/Sources/Component/Recycler/WXRecyclerComponent.m +++ b/ios/sdk/WeexSDK/Sources/Component/Recycler/WXRecyclerComponent.m @@ -173,6 +173,9 @@ typedef enum : NSUInteger { _dragController.dragingCell = [[WXCollectionViewCell alloc] initWithFrame:CGRectMake(0, 0, 100, 100/2.0f)]; _dragController.collectionView = _collectionView; +#ifdef __IPHONE_11_0 + _collectionView.contentInsetAdjustmentBehavior = UIScrollViewContentInsetAdjustmentNever; +#endif [self performUpdatesWithCompletion:^(BOOL finished) {