Ramanpreet Nara
bacfd92976
Implement 'automaticallyAdjustContentInsets' and 'contentInset' props
...
Summary:
@public
This diff introduces two new props:
1. **automaticallyAdjustContentInsets**: Controls whether to adjust the content inset for web views that are placed behind a navigation bar, tab bar, or toolbar. The default value is true.
1. **contentInset**: The amount by which the web view content is inset from the edges of the scroll view. Defaults to {top: 0, left: 0, bottom: 0, right: 0}.
**Note:** There're some inconsistencies between how `UIWebView` and `WKWebView` render web pages with respect to the `contentInset` property. These two videos illustrate the problem:
**UIWebView**
[[ P58674349 | Playground.js ]]
https://pxl.cl/9R9V
**WKWebView**
[[ P58674348 | Playground.js ]]
https://pxl.cl/9R9W
Here's a stack overflow answer describing the problem: https://stackoverflow.com/a/35472603 .
Reviewed By: shergin
Differential Revision: D6432181
fbshipit-source-id: aee6dac65d28435381ebec90519474b4707c7bab
2018-08-16 16:52:44 -07:00
..
2018-02-16 18:31:53 -08:00
2018-07-23 13:33:28 -07:00
2018-02-16 18:31:53 -08:00
2018-02-16 18:31:53 -08:00
2018-02-16 18:31:53 -08:00
2018-02-16 18:31:53 -08:00
2018-02-16 18:31:53 -08:00
2018-02-16 18:31:53 -08:00
2018-02-16 18:31:53 -08:00
2018-02-16 18:31:53 -08:00
2018-02-16 18:31:53 -08:00
2018-02-16 18:31:53 -08:00
2018-02-16 18:31:53 -08:00
2018-08-08 18:32:19 -07:00
2018-02-16 18:31:53 -08:00
2018-02-16 18:31:53 -08:00
2018-02-16 18:31:53 -08:00
2018-02-16 18:31:53 -08:00
2018-02-16 18:31:53 -08:00
2018-02-16 18:31:53 -08:00
2018-02-16 18:31:53 -08:00
2018-02-16 18:31:53 -08:00
2018-05-01 19:32:07 -07:00
2018-05-22 01:16:45 -07:00
2018-02-16 18:31:53 -08:00
2018-02-16 18:31:53 -08:00
2018-02-16 18:31:53 -08:00
2018-02-16 18:31:53 -08:00
2018-02-16 18:31:53 -08:00
2018-02-16 18:31:53 -08:00
2018-02-16 18:31:53 -08:00
2018-02-16 18:31:53 -08:00
2018-02-16 18:31:53 -08:00
2018-02-16 18:31:53 -08:00
2018-02-16 18:31:53 -08:00
2018-02-16 18:31:53 -08:00
2018-02-16 18:31:53 -08:00
2018-02-16 18:31:53 -08:00
2018-02-16 18:31:53 -08:00
2018-02-16 18:31:53 -08:00
2018-02-16 18:31:53 -08:00
2018-02-16 18:31:53 -08:00
2018-02-16 18:31:53 -08:00
2018-02-16 18:31:53 -08:00
2018-02-16 18:31:53 -08:00
2018-02-16 18:31:53 -08:00
2018-02-16 18:31:53 -08:00
2018-07-20 19:01:32 -07:00
2018-02-16 18:31:53 -08:00
2018-02-16 18:31:53 -08:00
2018-02-16 18:31:53 -08:00
2018-02-16 18:31:53 -08:00
2018-02-16 18:31:53 -08:00
2018-07-23 13:33:28 -07:00
2018-02-16 18:31:53 -08:00
2018-02-16 18:31:53 -08:00
2018-02-16 18:31:53 -08:00
2018-02-16 18:31:53 -08:00
2018-02-16 18:31:53 -08:00
2018-02-16 18:31:53 -08:00
2018-02-16 18:31:53 -08:00
2018-02-16 18:31:53 -08:00
2018-02-16 18:31:53 -08:00
2018-02-16 18:31:53 -08:00
2018-05-22 09:53:54 -07:00
2018-02-16 18:31:53 -08:00
2018-02-16 18:31:53 -08:00
2018-02-16 18:31:53 -08:00
2018-02-16 18:31:53 -08:00
2018-02-16 18:31:53 -08:00
2018-02-16 18:31:53 -08:00
2018-02-16 18:31:53 -08:00
2018-02-16 18:31:53 -08:00
2018-02-16 18:31:53 -08:00
2018-02-16 18:31:53 -08:00
2018-02-16 18:31:53 -08:00
2018-02-16 18:31:53 -08:00
2018-02-16 18:31:53 -08:00
2018-02-16 18:31:53 -08:00
2018-02-16 18:31:53 -08:00
2018-02-16 18:31:53 -08:00
2018-02-16 18:31:53 -08:00
2018-02-16 18:31:53 -08:00
2018-02-16 18:31:53 -08:00
2018-02-16 18:31:53 -08:00
2018-02-16 18:31:53 -08:00
2018-02-16 18:31:53 -08:00
2018-02-27 13:10:02 -08:00
2018-02-16 18:31:53 -08:00
2018-02-16 18:31:53 -08:00
2018-02-26 12:24:17 -08:00
2018-07-25 17:47:42 -07:00
2018-02-16 18:31:53 -08:00
2018-02-16 18:31:53 -08:00
2018-02-16 18:31:53 -08:00
2018-08-16 16:52:44 -07:00
2018-08-16 16:52:44 -07:00
2018-08-16 16:52:44 -07:00
2018-08-16 16:52:43 -07:00
2018-08-16 16:52:44 -07:00
2018-02-16 18:31:53 -08:00
2018-02-16 18:31:53 -08:00
2018-02-16 18:31:53 -08:00
2018-06-28 12:09:58 -07:00
2018-06-28 12:09:58 -07:00