Re: Scrollheight Not Accurate



Peter Carlson <peter@xxxxxxxxxxxxxxxxxxxxx> wrote:
I am hosting a webbrowser ctrl and using the below code to render to a
bitmap. For a large page we normally resize the wndow, then call
Draw. However for an iframe (sample at
http://www.howudodat.com/frame.html) the scrollHeight is being
returned incorrectly.

What makes you think so? The code you show gets the scrollHeight of the
frameset document. Each frame hosts its own document with its own,
independent scrollHeight which you never retrieve.
--
With best wishes,
Igor Tandetnik

With sufficient thrust, pigs fly just fine. However, this is not
necessarily a good idea. It is hard to be sure where they are going to
land, and it could be dangerous sitting under them as they fly
overhead. -- RFC 1925


.



Relevant Pages

  • Re: Scrollheight Not Accurate
    ... Igor Tandetnik wrote: ... bitmap. ... The code you show gets the scrollHeight of the frameset document. ...
    (microsoft.public.inetsdk.programming.webbrowser_ctl)
  • Re: Need help on how to send varible value from iframe back to its parent.
    ... paul wrote: ... Is it the page in which the iframe is opened? ... The second time I load the same data, I get scrollHeight |142| ...
    (microsoft.public.scripting.jscript)
  • Re: resizing iframe
    ... I have an iframe in a table cell. ... Now I want the iframe to resize to fill up tho whole height of the ... > of iframe equal to the size window's body scrollHeight so that way i ...
    (microsoft.public.dotnet.framework.aspnet)
  • resizing iframe
    ... i want to resize iframe's height when the window inside the frame is ... resized or when the src attribute of iframe changes so make the height ... of iframe equal to the size window's body scrollHeight so that way i ... any changes to the contents inside it or when scr of the frame changes? ...
    (microsoft.public.dotnet.framework.aspnet)

Loading