6

I need to know the maximum width and height of the viewport in Mobile Safari, iPhone 4, without the height of the statusbar on top and the bar with the forward/back/bookmarks bar at the bottom.

6

The iPhone 4 display is 320 by 480 points in size total. The status bar is 20 points high, and the tool bar at the bottom in 44 points high.

  • According to the official specs, the Iphone 4 has a resolution of 960x640. So that can't be it... – Diego Mar 1 '11 at 0:25
  • 3
    There are 2 hardware pixels per point on an iPhone 4 (scale = 2.0). 1 hardware pixel per point on a 3GS (scale = 1.0). But Javascript and css px maps to points, not hardware pixels. – hotpaw2 Mar 1 '11 at 1:14

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .