Re: AxWebBrowser true document size problem

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



"gregl" <gregl@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:85AE5EE0-9FE0-4814-929B-5B674B090928@xxxxxxxxxxxxxxxx
> What I require is the true width and height of the document, excluding
> all
> of the white-space that its container may add to it. If the body of
> my
> document is 200x100, but the browser (AxWebBrowser) is initially sized
> to
> 500x500. I need to obtain the 200x100 size.

There ain't no such thing as a "true size" of an HTML document. HTML
tends to "flow" the content - adapt it to the current width of the
browser window. For most pages, the height changes as the browser is
resized width-wise.

> I only appear to be finding the
> actual size of the browser, since the document is resize to fit the
> container. If the browser is initially size to 50x50, I still only
> see that
> size, not the 200x100.

Try body.scrollWidth and scrollHeight.
--
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: Malware Triangle
    ... Ok, the capable browser says "Ooh look, a script tag! ... > ability to act as a container for non-html content, ... > that conglomeration is an html document, ... > execute the additional content contained within html documents they ...
    (alt.computer.security)
  • Re: Determine if Excel is running in a browser window
    ... CName = ThisWorkbook.Container.Name ' will error if no container ... You are running in a browser window." ... MsgBox "You're in Excel." ... keepITcool which contained enough code for me to test and confirm the ...
    (microsoft.public.excel.programming)
  • Re: Determine if Excel is running in a browser window
    ... Private Sub Workbook_Activate ... CName = ThisWorkbook.Container.Name ' will error if no container ... You are running in a browser window." ... keepITcool which contained enough code for me to test and confirm the ...
    (microsoft.public.excel.programming)
  • Re: Embedding QuickTime movie
    ... It now requires a Javascript stub, and obviously, Javascript enabled on the browser. ... If you've got a number of pages with the style code to convert, the BBEdit script will do the job nicely. ... You can certainly alter the user warning message (inside the container) to your liking or just replace the container with a text warning without the image. ...
    (alt.html)
  • Re: Adobe Flex for MV GUI
    ... Now about that container thing... ... it's not a part of the language. ... is acting upon a feature exposed by the container. ... the language when used within a browser, but not a feature of the language ...
    (comp.databases.pick)