[Webkit-unassigned] [Bug 170595] New: window.innerWidth/innerHeight are bogus after both resize AND orientationchange events

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Apr 7 03:54:03 PDT 2017


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

            Bug ID: 170595
           Summary: window.innerWidth/innerHeight are bogus after both
                    resize AND orientationchange events
           Product: WebKit
           Version: Other
          Hardware: iPhone / iPad
                OS: iOS 10
            Status: NEW
          Severity: Major
          Priority: P2
         Component: Layout and Rendering
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: ae at instinctive.de
                CC: bfulgham at webkit.org, simon.fraser at apple.com,
                    zalan at apple.com

When my iPhone SE is rotated from portrait to landscape or vice versa, both resize and orientationchange events are generated on window (OK). However, in the respective event handlers, window.innerWidth/innerHeight have useless / bogus values. For example, in a resize handler, they'll BOTH (!) be 320 (last time I checked, my iPhone wasn't square), and in the orientationchange handler, it will still have the values from the PREVIOUS orientation.

This is a major showstopper for hybrid apps that aim to support both orientations.

Introduced in iOS 10.3.1. 10.2 was fine.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20170407/693d7d83/attachment-0001.html>


More information about the webkit-unassigned mailing list