Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #15532

How to initialize viewport exact size?

From "A" <a@a.a>
Newsgroups comp.lang.javascript
Subject How to initialize viewport exact size?
Date 2012-08-23 23:04 +0200
Organization B.net Hrvatska d.o.o.
Message-ID <k165tb$m26$1@gregory.bnet.hr> (permalink)

Show all headers | View raw


...
<meta name="viewport" content="user-scalable=no, initial-scale=1, 
maximum-scale=1, minimum-scale=1, width=device-width;" />
...

<body>
...
<img src="image.jpg" />
...

The above loads picture in mobile Safari but the problem is that it is 
double size than the original image. Original image is in screen resolution 
and should fit the screen from corner to corner (100%).

If I change initial scale to 0.5 then it is fine, but why is this so?
Shouldn't it be with initial scale 1 and width device width fill the screen 
as intented?

I am new to mobile HTML/Javascript (although I have experience with desktop 
variant) so go easy on the newbie :) 

Back to comp.lang.javascript | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

How to initialize viewport exact size? "A" <a@a.a> - 2012-08-23 23:04 +0200
  Re: How to initialize viewport exact size? SAM <stephanemoriaux.NoAdmin@wanadoo.fr.invalid> - 2012-08-25 10:17 +0200

csiph-web