screen.width/screen.height not updating after screen rotation
问题 I'm experiencing this problem on an iPhone device (iPhone 7, iOS 10, but also other iPhones too): in javascript, if I intercept the orientationchange event, inside the handler, screen.width and screen.height remain the same (as before rotation). Since this may depend from the viewport settings, this is how my viewport is declared in the .html file: <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1, maximum-scale=1, user-scalable=no" /> Everything works fine