Browse Source

horizontal scrollView insets fix

yogevbd 6 years ago
parent
commit
cbef2062f4
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      ios/RNNSwizzles.m

+ 1
- 1
ios/RNNSwizzles.m View File

@@ -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;