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


Groups > comp.lang.javascript > #20451

Re: Dynamically changing the viewport in iOS Safari doesn't work until the second time rotating the device

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.freenet.ag!takemy.news.telefonica.de!telefonica.de!newsfeed.arcor.de!newsspool3.arcor-online.net!news.arcor.de.POSTED!not-for-mail
Content-Type text/plain; charset="UTF-8"
Message-ID <2605614.rhauKp79nQ@PointedEars.de> (permalink)
From Thomas 'PointedEars' Lahn <PointedEars@web.de>
Reply-To Thomas 'PointedEars' Lahn <usenet@PointedEars.de>
Organization PointedEars Software (PES)
Date Wed, 26 Jun 2013 16:37:40 +0200
User-Agent KNode/4.10.4
Content-Transfer-Encoding 8Bit
X-Face %i>XG-yXR'\"2P/C_aO%~;2o~?g0pPKmbOw^=NT`tprDEf++D.m7"}HW6.#=U:?2GGctkL,f89@H46O$ASoW&?s}.k+&.<b';Md8`dH6iqhT)6C^.Px|[=M@7=Ik[_w<%n1Up"LPQNu2m8|L!/3iby{-]A+#YE}Kl{Cw$\U!kD%K}\2jz"QQP6Uqr],./"?;=4v
Face iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAGFBMVEXTxa4RFk5dUWANED8PFEfy7+MGBiW+n3ZNF/QuAAACaElEQVQ4jVXUwVOcMBQG8Dc7Rc4PUntdWV2uxjDpGaGeozOp1woar4jd5t/v9wLstMwsA/ntlxdCAgUc1hjTc9/JCZfGoo3wG3HdmdAWrIJRHe7GM/TmpY5VFefuVcAkkPbLIaN8rmPmjloyZxgyR3GuJ4K0AGtJ2htz8o7yqikm759fldQXaMpbDzjKAG+8v+AugVTOPO5DOjLvGtUYQwh0CPjnVMyGd+8/GfUB5nLKJDD2aLDh5HYyMDJGDwQIo2ZmZcKbowNmAdB/AzyFhrmF2MHRb0QJJfaAnwGB6orZhoykLzJtGwF/xpYxI1dswomiUj3gTuAIqCn/4C7cULwGNBtwMTk3Y4LfKB5YUaOKBKYtpplm7u0vip8tU1NWWyI/7XdcSuIDoMt6rVHMWT0DbjHPGqDqZVSa6zleLcUTcIKLoMv3ueJluALtAo9B302zPPlrtiVScRdCjXvVh3e3JpYa/jjkuC9N+LrBMlz/eAN4eQijX2EdLo6c5tGGHwLyHFtXk89dDGHwCVhG9T0S/j55AhRZgkMCmUQXJ49TnS1wnQDvw0eAh9ICeMmEFbCnPMFzjAvsWoEWEFdYEx+S0MoUZ1gT1wId8+AF3Bl2OoEu906AUHx5VLw/gXYg/x84loOah/2UYNrgiwSwGO7RfUzVBbx/kgpckumGOi6QirtD6gkLTitbnxNol47S2jVc2vsN5kPqaAHT8uUdAJM4v/DanjYOwmUjWznGfwB7sGtAtor5BgofDuzaRj4kSQAqDakTsKORa3Q3xKi3gE1fhl71KRMqrdZ2AWNNg/YOhQyrVBnb+i+nEg4bsDA+egAAAABJRU5ErkJggg==
Subject Re: Dynamically changing the viewport in iOS Safari doesn't work until the second time rotating the device
Newsgroups comp.lang.javascript
References <ea295286-521e-4295-a92b-043fddebefdb@googlegroups.com>
MIME-Version 1.0
Lines 29
NNTP-Posting-Date 26 Jun 2013 16:37:41 CEST
NNTP-Posting-Host f04d8f56.newsspool4.arcor-online.net
X-Trace DXC=n6\\S6T6^T@74okIm;?DS@4IUK<Cl32<A4Fo<]lROoRA8kF<OcfhCOKH?bDQ\Zh=?IDZm8W4\YJNLb@mF9jNikdEIQbgJMhLo0GFUDF528lO@@
X-Complaints-To usenet-abuse@arcor.de
Xref csiph.com comp.lang.javascript:20451

Show key headers only | View raw


Mauro Julián Fernández wrote:

[wrapped to 80 characters per line]
> I'm developing a web for iPad/iPhone and need to set different viewports
> for portrait and landscape mode. I'm doing this with Javascript with the
> orientationchange event, but there is a problem, after loading the page
> when I first rotate the device, the content doesn't get scaled, but this
> is only the first time, if I go back to the first state and then rotate
> back again, this time works perfectly. I tried the same but loading the
> page with the other orientation and it's the same problem, it only scales
> the content properly after the second try.

For your next posting that you should not post via Google Groups, and that 
should contain less than 80 characters per line:

..........................................................................

See also:

<http://jibbering.com/faq/#posting>
<http://PointedEars.de/faq#posting>

BTW, there is no “Javascript”: <http://PointedEars.de/es-matrix>

-- 
PointedEars

Twitter: @PointedEars2
Please do not Cc: me. / Bitte keine Kopien per E-Mail.

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


Thread

Dynamically changing the viewport in iOS Safari doesn't work until the second time rotating the device Mauro Julián Fernández <mauroj.fernandez@gmail.com> - 2013-06-26 06:04 -0700
  Re: Dynamically changing the viewport in iOS Safari doesn't work until the second time rotating the device Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2013-06-26 16:37 +0200
  Re: Dynamically changing the viewport in iOS Safari doesn't work until the second time rotating the device Andrew Poulos <ap_prog@hotmail.com> - 2013-06-27 07:25 +1000

csiph-web