Explorar el Código

horizontal scrollView insets fix

yogevbd hace 6 años
padre
commit
cbef2062f4
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1
    1
      ios/RNNSwizzles.m

+ 1
- 1
ios/RNNSwizzles.m Ver fichero

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