Quellcode durchsuchen

fix(iOS WKWebView): contentInset not properly applied (#603)

ptrocki vor 5 Jahren
Ursprung
Commit
6e79f2a26f
1 geänderte Dateien mit 1 neuen und 0 gelöschten Zeilen
  1. 1
    0
      ios/RNCWKWebView.m

+ 1
- 0
ios/RNCWKWebView.m Datei anzeigen

@@ -574,6 +574,7 @@ static NSURLCredential* clientAuthenticationCredential;
574 574
 
575 575
   // Ensure webview takes the position and dimensions of RNCWKWebView
576 576
   _webView.frame = self.bounds;
577
+  _webView.scrollView.contentInset = _contentInset;
577 578
 }
578 579
 
579 580
 - (NSMutableDictionary<NSString *, id> *)baseEvent