I'm currently working on a web app for an iPad 3, but I'm facing an issue with the vertical scroll functionality. Strangely, this problem hasn't occurred when developing similar apps in the past, so I'm unsure of what's causing it this time.
Within the head element of my HTML, I have included the following meta tags:
<meta name="format-detection" content="telephone=no">
<meta name="viewport" content="user-scalable=no, initial-scale=1, minimum-scale=1, maximum-scale=1, width=device-width, height=device-height, target-densitydpi=device-dpi">
<meta name="apple-mobile-web-app-capable" content="yes">
In my CSS file:
html, body { width: 100%; height: 100%; overflow: hidden; }
While trying to debug the issue using weinre, I noticed that the document width and height were unexpectedly equal, even though they should differ significantly (especially in landscape mode).
$(document).width(); // returns 1024
$(document).height(); // returns 1024
After searching on various platforms like Stack Overflow, I've seen suggestions to add a viewport meta tag, which is already implemented in my code. Can anyone provide insight into how to solve this particular problem?