I've got a webview, and I'd like to scroll an element into view using
the scrollIntoView method on the DOM object. When I try to call the
method using:
String fnx =
"javascript:document.getElementById(\"word_33\").scrollIntoView(true)";
self.subtitlesWebview.loadUrl(fnx);
No scrolling happens.
Immediately before I make this call, I make a different loadUrl call
on the same webview to set the css class of the element, so I believe
I'm communicating with the webview correctly. I can also copy the
string passed to loadUrl and paste it into a non-android Chrome
session that has the same HTML as the Android app, and I get exactly
the scrolling behavior I'd expect.
Suggestions? Is there something special about scrolling and webviews
that I'm missing?
--
James Moore | [email protected]
blog.restphone.com
--
You received this message because you are subscribed to the Google
Groups "Android Developers" 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/android-developers?hl=en