[Webkit-unassigned] [Bug 170595] window.innerWidth/innerHeight are bogus after resize/orientationchange in WKWebView (but not MobileSafari)

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Dec 18 22:50:43 PST 2018


https://bugs.webkit.org/show_bug.cgi?id=170595

Mo Lam <moplam at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |moplam at gmail.com

--- Comment #25 from Mo Lam <moplam at gmail.com> ---
A slightly different workaround:

To avoid creating a new element, The following workaround seems to work fairly well for me:

For non-Safari, get the layout viewport size from document.documentElement.clientHeight (& Width).

Unfortunately, Safari's documentElement size does not update when the URL bar hides so I couldn't just apply it to all Webkit browser, but this bug just doesn't happen to Safari.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20181219/9b5a72b0/attachment.html>


More information about the webkit-unassigned mailing list