Hi,

I was used to programmatically scroll embedded browser content using
some code like this:

nsCOMPtr<nsIDOMWindow> domWindow;
mWebBrowser->GetContentDOMWindow(getter_AddRefs(domWindow));
domWindow->ScrollTo(xScroll, yScroll);

and everything was working fine. BUT this kind of code has no effect
on Google Docs pages, i.e. if I point my browser on (for example)

http://docs.google.com/gview?embedded=true&url=http://www.itu.int/dms_pub/itu-s/md/03/wsis/doc/S03-WSIS-DOC-0004!!MSW-E.doc

nothing happens. Also, if I use methods like nsIDOMWindow::GetScrollX,
I always get 0.

Any clue?

thx!
Aaron



_______________________________________________
dev-embedding mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-embedding

Reply via email to