Bug 144913 - WKWebView does not re-layout fixed positioned element after orientation change
Summary: WKWebView does not re-layout fixed positioned element after orientation change
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit2 (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2015-05-12 07:57 PDT by Stefan Arentz
Modified: 2015-06-11 17:00 PDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stefan Arentz 2015-05-12 07:57:20 PDT
Confirmed on iOS 8.0 and up. Test page at http://bradfrost.com/demo/fixed/index.html

STR:

1) Create a WKWebView, set its frame full screen and set its resizing mask to flexible width/height
2) Load http://bradfrost.com/demo/fixed/index.html
3) See the header and footer correctly positioned and have the width of the screen
4) Change device to landscape
5) See the header and footer still have the original width.

Forcing a re-layout by scrolling a bit makes the header and footer widths update correctly.

In Firefox for iOS we have a workaround for this issue where we nudge the scrollView a bit to force a layout.

See https://github.com/mozilla/firefox-ios/commit/c93880e27c930d3f41cd8f44b1bcbd642ed6c81d#diff-6d1fb0cf203fcd3c299d4ba3f07f21deR130
Comment 1 Radar WebKit Bug Importer 2015-06-11 17:00:19 PDT
<rdar://problem/21350212>