iPad viewport size less hardcoded

This commit is contained in:
Bartek Szopka
2012-03-07 23:02:09 +01:00
parent 74a309a803
commit 8321fa7861

View File

@@ -135,7 +135,7 @@
var meta = $("meta[name='viewport']") || document.createElement("meta"); var meta = $("meta[name='viewport']") || document.createElement("meta");
// hardcoding these values looks pretty bad, as they kind of depend on the content // hardcoding these values looks pretty bad, as they kind of depend on the content
// so they should be at least configurable // so they should be at least configurable
meta.content = "width=1024, minimum-scale=0.75, maximum-scale=0.75, user-scalable=no"; meta.content = "width=device-width, minimum-scale=1, maximum-scale=1, user-scalable=no";
if (meta.parentNode != document.head) { if (meta.parentNode != document.head) {
meta.name = 'viewport'; meta.name = 'viewport';
document.head.appendChild(meta); document.head.appendChild(meta);