WKWebView.scrollView.contentInsetAdjustmentBehavior changes to .never by itself

Originator:an00na
Number:rdar://35753148 Date Originated:November 29 2017, 1:32 PM
Status:Open Resolved:
Product:iOS + SDK Product Version:11.2 beta 5
Classification:UI/Usability Reproducible:Always
 
Area:
WebKit

Summary:
WKWebView.scrollView.contentInsetAdjustmentBehavior is initially .always but later changes to .never by itself. As a result the contentInset & scrollIndicatorInsets are wrong the part of the web content is covered by navigation bar if the web view is inside a navigation controller.

Steps to Reproduce:
1. Launch sample app.
2. Wait for the web page to load.
3. Notice the scroll bar while scrolling up and down.
4. Rotate the screen and rotate back. Read the console logs.

Code: https://mega.nz/#!ZaZjBDhT!P-830V3XxB7upM6KNoaS6vFl6otzrk3EDhUT9jI13YU

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!