Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #20450
| Newsgroups | comp.lang.javascript |
|---|---|
| Date | 2013-06-26 06:04 -0700 |
| Message-ID | <ea295286-521e-4295-a92b-043fddebefdb@googlegroups.com> (permalink) |
| Subject | Dynamically changing the viewport in iOS Safari doesn't work until the second time rotating the device |
| From | Mauro Julián Fernández <mauroj.fernandez@gmail.com> |
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.
Back to comp.lang.javascript | Previous | Next — Next in thread | Find similar | Unroll 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