Hi Thoem, Hidding the URL bar is more or less a scrollY of 100px. But you can't scroll outside the page, so if you want to scroll to 100px height, it means your page height has to be at least the height of your screen.
Multiple scenario: - You can use body > *:not(.toolbar) and set a height value to 100%. This work, but if your ontent is higher than screen height, body > * background will not go longer than 100% of your screen (iphone +-= 416px). - You can use body > *:not(.toolbar) and set a height value to auto, and min-height value to 100%. Can't remember why exactly but this doesn't work neither at some point due to % instead of px value. - You can use Javascript to detect screen viewport height and set it as min-height value as px. Then, have fun since you have to deal with standalone mode, browser with navbar or not (iOS vs Android) and set it on load + after any new screen is insert in the DOM via ajax. Trust me, it's a real pia i still wear the scars of. That said, you're in luck: latest solution is part of iUI 0.5 (which should be released this week or next one if Sean's kids give him some rest :)). But if you're in the hurry & need to code it yourself, well... you know how to do it but dude, have fun! R. On Thu, May 5, 2011 at 18:16, Thoern <[email protected]> wrote: > I would like the map to be fullscren without the url bar, but the > metatag is making this difficult as the recomended is: > <meta name="viewport" content="width=device-width, initial-scale=1.0, > user-scalable=no" /> > > Tried the below but it becomes very small and the map is not centerd > properly. > <meta name="viewport" content="width=320; initial-scale=0.6666; > maximum-scale=1.0; minimum-scale=0.6666"/> > > the javascript that removes the url bar is > > <script type="application/x-javascript"> > if (navigator.userAgent.indexOf('iPhone') != -1) { > addEventListener("load", function() { > setTimeout(hideURLbar, 0); > }, false); > } > > function hideURLbar() { > window.scrollTo(0, 1); > > } > </script> > > Anyone had any success with viewpoint and google maps without the url > bar? > > > > > > -- > 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. > > -- 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.
