window.scrollTo is used to hide the Navigation bar and show more web 
content.
The same function is used in iUI (which is essentially a later version 
of "liquid layout")

-- Sean

Jon B. wrote:
> Thanks! That did the trick. I was unfamiliar with the scrollto method,
> but now that I've researched it, it's obvious that that was the cause
> of my issue.
>
> Why is that section of code in there in the first place?
>
> ~Jon
>
> On Apr 20, 6:38 pm, Sean Gilligan <msgilli...@gmail.com> wrote:
>   
>> Try removing the lines:
>>
>>             setTimeout(function()
>>             {
>>                 window.scrollTo(0, 1);
>>             }, 100);          
>>
>> -- Sean
>>
>> Jon B. wrote:
>>     
>>> I've been developing an iPhone-optimized version of an existing PHP/
>>> mySQL webapp of mine and have run into an odd problem. I want to be
>>> able to alter the CSS depending on the device orientation. I've
>>> included Joe Hewitt's "liquid layout" 
>>> [http://www.joehewitt.com/files/liquid1.html
>>> ] and it works great. But if I include a hash in the URL of the page,
>>> the display doesn't jump to the corresponding named anchor. If I
>>> remove the liquid layout eventListener javascipt stuff, then the
>>> display jumps as expected.
>>>       
>>> Any thoughts on whether and how I can get the page display to jump to
>>> a named anchor on load? Thanks!
>>>       
>
> >
>   


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"iPhoneWebDev" group.
To post to this group, send email to iphonewebdev@googlegroups.com
To unsubscribe from this group, send email to 
iphonewebdev+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/iphonewebdev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to