UIWebView safe area inset constants lead to a mess after rotating
Originator: | 413080524 | ||
Number: | rdar://35555156 | Date Originated: | 15-Nov-2017 17:58 |
Status: | open | Resolved: | |
Product: | OS + SDK | Product Version: | iOS 11 GM |
Classification: | UI/Usability | Reproducible: | Always |
Summary: When rotating the device, it appears that the CSS safe-area-inset constants are not getting updated in UIWebView. Steps to Reproduce: 1. Load a page with `viewport-fit=cover` and `constant(safe-area-inset-top)` into a fullscreen UIWebView on iPhone X in portrait view (example HTML: http://kg.qq.com/test/landscapev2_1608.html ) 2. Rotate the device to landscape view. 3. Rotate the device back to portrait view. Expected Results: After rotating back to portrait view, the safe-area-inset-top should be 44px Actual Results: After rotating back to portrait view, the safe-area-inset-top is 0 Version: UIwebview iOS 11 GM Notes: This is fixed in WKWebView, possibly by this:,bug not fixed in UIWebView。
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!