Commit 47291533 authored by Hiroshi Ichikawa's avatar Hiroshi Ichikawa Committed by Commit Bot

Set WKScrollView.contentInsetAdjustmentBehavior to |never|

This is required for //ios/web_view (crbug.com/774876).

TEST=Fullscreen and overscroll actions

Bug: 774876
Change-Id: Ie6c57ea5efd2d7fc6d8f26117db07171c085ad69
Reviewed-on: https://chromium-review.googlesource.com/720856
Commit-Queue: Hiroshi Ichikawa <ichikawa@chromium.org>
Reviewed-by: default avatarEugene But <eugenebut@chromium.org>
Cr-Commit-Position: refs/heads/master@{#509259}
parent 09265f69
......@@ -57,6 +57,11 @@ WKWebView* BuildWKWebView(CGRect frame,
// reasonable value.
web_view.scrollView.decelerationRate = UIScrollViewDecelerationRateNormal;
if (@available(iOS 11.0, *)) {
web_view.scrollView.contentInsetAdjustmentBehavior =
UIScrollViewContentInsetAdjustmentNever;
}
if (context_menu_delegate) {
CRWContextMenuController* context_menu_controller = [
[CRWContextMenuController alloc] initWithWebView:web_view
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment