I understand that the default behavior of iOS regarding device-width
might be to try to render websites using a viewport width of 980px, and setting width=device-width
might be useful (particularly if you are developping a Cordova/mobileApp/SPA.
However I'm not sure to understand when should we set height=device-height
. Does adding this line have any effect? Isn't it the default behavior to use the device height as the viewport height?
I have a mobile app, that is available both as a mobile website and a cordova native app. There are 2 separate index.html
pages with different settings (legacy):
// Mobile website has:
// Cordova has:
I'd like to know the risks I encounter of using the same content value for both cases (which seems like it's mostly arround device-height
)
I didn't find the online documentation to be really helpful on that subject. Any idea?