소스 검색

Inset adjustment behavior should be automatic

Otherwise, if the users sets custom insets (additional insets), they override the system adjusted insets. This is not the expected behavior.
Leo Natan 6 년 전
부모
커밋
ee5450cb34
No account linked to committer's email address
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1
    1
      lib/ios/RNNSwizzles.m

+ 1
- 1
lib/ios/RNNSwizzles.m 파일 보기

@@ -20,7 +20,7 @@ static id (*__SWZ_initWithEventDispatcher_orig)(id self, SEL _cmd, id eventDispa
20 20
 	id returnValue = __SWZ_initWithEventDispatcher_orig(self, _cmd, eventDispatcher);
21 21
 	
22 22
 	if (@available(iOS 11.0, *)) {
23
-		[(UIScrollView*)[returnValue valueForKey:@"scrollView"] setContentInsetAdjustmentBehavior:UIScrollViewContentInsetAdjustmentAutomatic];
23
+		[(UIScrollView*)[returnValue valueForKey:@"scrollView"] setContentInsetAdjustmentBehavior:UIScrollViewContentInsetAdjustmentAlways];
24 24
 	}
25 25
 	
26 26
 	return returnValue;