I'm building a web iPhone app that involves changing the viewport on demand with Javascript. I do this by changing the content attribute of the <meta name="viewport"> tag. This works well most of the times, except when orientation change is involved. Everytime I try to change the viewport after an orientation change event, the page doesn't zoom to it's full size anymore, and a checkered background appears.
Here's a way to reproduce this: 1. Go to http://daedalus.rcboyce.com/viewport/ 2. Resize to 980 (iPhone's default) 3. Resize to 320 (works) 4. Resize back to 980 5. Go to landscape mode 6. Go to portrait mode back again 7. Resize to 320 (fails every time I tried) Here's a screenshot of how it looks: http://tinypic.com/r/15qyzoh/6 Does anybody have any ideea why this is happening? Is this a MobileSafari bug, and if so, is there anyway to fix it? -- You received this message because you are subscribed to the Google Groups "iPhoneWebDev" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/iphonewebdev?hl=en.
