<html>
    <head>
      <base href="https://bugs.webkit.org/">
    </head>
    <body><span class="vcard"><a class="email" href="mailto:moplam@gmail.com" title="Mo Lam <moplam@gmail.com>"> <span class="fn">Mo Lam</span></a>
</span> changed
          <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - window.innerWidth/innerHeight are bogus after resize/orientationchange in WKWebView (but not MobileSafari)"
   href="https://bugs.webkit.org/show_bug.cgi?id=170595">bug 170595</a>
          <br>
             <table border="1" cellspacing="0" cellpadding="8">
          <tr>
            <th>What</th>
            <th>Removed</th>
            <th>Added</th>
          </tr>

         <tr>
           <td style="text-align:right;">CC</td>
           <td>
                
           </td>
           <td>moplam@gmail.com
           </td>
         </tr></table>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - window.innerWidth/innerHeight are bogus after resize/orientationchange in WKWebView (but not MobileSafari)"
   href="https://bugs.webkit.org/show_bug.cgi?id=170595#c25">Comment # 25</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - window.innerWidth/innerHeight are bogus after resize/orientationchange in WKWebView (but not MobileSafari)"
   href="https://bugs.webkit.org/show_bug.cgi?id=170595">bug 170595</a>
              from <span class="vcard"><a class="email" href="mailto:moplam@gmail.com" title="Mo Lam <moplam@gmail.com>"> <span class="fn">Mo Lam</span></a>
</span></b>
        <pre>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.</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>