Welcome, Guest
Username Password: Remember me

iPhone Error with the Viewport Width
(1 viewing) (1) Guest
  • Page:
  • 1

TOPIC: iPhone Error with the Viewport Width

iPhone Error with the Viewport Width 13 years, 10 months ago #3174

  • hockmasm
  • OFFLINE
  • Junior Boarder
  • Posts: 38
  • Karma: 0
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.
Last Edit: 13 years, 10 months ago by hockmasm.
  • Page:
  • 1
Time to create page: 0.07 seconds

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.