WKWebView doesn't render area outside the iPhone screen

Originator:pawin
Number:rdar://28351624 Date Originated:18-Sep-2016
Status:Open Resolved:
Product:iOS Product Version:10.0.1
Classification: Reproducible:
 
Area:
WebKit

Summary:
I have WKWebView inside the UITableViewCell. The web view load request and then after finished loading, I'll resize the web view height to be equal to its content height, then adjust table view cell height to fit accordingly.

What happened was the web view only displays the area that fit the screen size. When I scroll down, everything is white. But I see that the web view rendered with correct height, tap and hold on the white area on the web view still see selection. Zooming with pinch makes the web view area that displaying on the screen visible, but other areas sometimes become white.

demo: https://github.com/pawin/strange-wkwebview

Steps to Reproduce:
I have attached the sample app here, so just run and scroll down the web view see the result.

Expected Results:
I would expect to see fully rendered web view

Actual Results:
when scroll the webview it will only show white area

Version:
iOS 10.0.1

Notes:


Configuration:
iPhone 6s, and simulators

Attachments:
'strange-wkwebview-master.zip' was successfully uploaded.

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!