Didn't work with scrollTo unfortunately. Any other ideas on how to fix this?
On Feb 16, 11:02 am, Mircea Pasoi <[email protected]> wrote: > I've seen this behavior on both an iPhone 3G and an iPhone 3GS and it > didn't work. > I'll try to use scrollTo and see what happens. Any other ideas? > > On Feb 16, 1:13 am, Remi Grumeau <[email protected]> wrote: > > > > > This behavior doesn't happen here using the simulator… > > Reinitialising the window position with a scrollTo event could help nope ? > > > Remi > > > Le 16 févr. 2010 à 03:28, Mircea Pasoi a écrit : > > > > 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 tohttp://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 > > > athttp://groups.google.com/group/iphonewebdev?hl=en. -- 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.
