I've use the following function in - ONLOAD, ONKEYUP, AND ONFOCUS all
seem to work fine on the iPhone.
function scrollup(y)
{
setTimeout(function(){window.scrollTo(0, y);}, 100);
}
On Sep 13, 3:49 pm, djMax <[EMAIL PROTECTED]> wrote:
> I have an upper toolbar (45px high). When the user focuses a text
> field, I want to scroll to 45px, but the iPhone appears to ignore this
> (safari, firefox, etc.) do it fine.
>
> Is this a known limitation, and is it that the only y value for
> scrolling that works is 1?!? Any other thoughts on workarounds?
> Thanks.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---