Of course, I see the delema. I'm doing some funny things with CSS to ensure that I have a Top Nav <div>, Bottom Nav <div> and Content <div> with 'overflow: hidden'.
Thus, for me scrolling to window.innerHeight, is the solution because Bottom Nav <div> is anchored to 'bottom: 0px', but you are correct. If your content length exceeded your window.innerHeight(), you wouldn't get the desired results. Here are the observations I made during testing, they may help someone find a better solution: 1) Google does this now, on www.google.com/m?source=android-home with Andriod Devices. 2) Call the ScrollTo() didn't have any affect, unless I had content that filled 100% of the view port. -Dylan On Mar 21, 9:31 am, Remi Grumeau <[email protected]> wrote: > Hum... Wouldn t this code scrolls to the height of the screen? On a > droid, 800px?480px? Tried that with a long long list?(like 150 lines > list). > > R. > > 2010/3/19, Dylan Phillips <[email protected]>: > > > > > > > opok: > > > Try this, it worked for my Droid: > > > window.scrollTo(0, window.innerHeight); > > > -Dylan > > > On Mar 6, 12:55 am, opok <[email protected]> wrote: > >> Hi, I am currently developing a website with IUI framework and got an > >> android phone to test. > > >> I set a timeout to delay some scripts to load and before that I want > >> the browser URL bar hide to notify user that the page is loaded, > >> however, I did not make it and I also tried "window.scrollTo(0, 1)" > >> function but found it does not work either. > > >> Anyone have ideas? > > > -- > > 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. > > -- > Envoyé avec mon mobile > > Remi Grumeau > tel: (0)663 687 206http://www.remi-grumeau.com- Hide quoted text - > > - Show quoted text - -- 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.
