瀏覽代碼

horizontal scrollView insets fix

yogevbd 6 年之前
父節點
當前提交
cbef2062f4
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1
    1
      ios/RNNSwizzles.m

+ 1
- 1
ios/RNNSwizzles.m 查看文件

@@ -50,7 +50,7 @@ static void __RNN_setFrame_orig(UIScrollView* self, SEL _cmd, CGRect frame)
50 50
 	id returnValue = __SWZ_initWithEventDispatcher_orig(self, _cmd, eventDispatcher);
51 51
 	
52 52
 	if (@available(iOS 11.0, *)) {
53
-		[(UIScrollView*)[returnValue valueForKey:@"scrollView"] setContentInsetAdjustmentBehavior:UIScrollViewContentInsetAdjustmentAlways];
53
+		[(UIScrollView*)[returnValue valueForKey:@"scrollView"] setContentInsetAdjustmentBehavior:UIScrollViewContentInsetAdjustmentScrollableAxes];
54 54
 	}
55 55
 	
56 56
 	return returnValue;