iPhone Error with the Viewport Width

hockmasm
13 years, 10 months ago
I have a Kin Twom windows phone.

when i go to iphone template it only shows on half the screen. Like there is a 50% width attribute applied.

It seems that this is the problem:

<meta name="viewport" content="width = <?php echo (int)$MobileJoomla_Device['screenwidth']; ?>, initial-scale = 1.0, user-scalable = no, maximum-scale = 1.0">

If i comment out the
<?php echo (int)$MobileJoomla_Device['screenwidth']; ?>

and replace with 320 it works fine. however i cannot test on a iPhone. only my windows phone.

Any idea why this happens? What does this code mean - i dont understand it.

By continuing to use this site you consent to the use of cookies on your device as described in our cookie policy unless you have disabled them. This site will not function correctly without cookies.

I accept cookies from this site.