Re: AxWebBrowser true document size problem
- From: "Igor Tandetnik" <itandetnik@xxxxxxxx>
- Date: Mon, 16 May 2005 21:15:56 -0400
"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
.
- References:
- AxWebBrowser true document size problem
- From: gregl
- Re: AxWebBrowser true document size problem
- From: Alex Blekhman
- Re: AxWebBrowser true document size problem
- From: gregl
- Re: AxWebBrowser true document size problem
- From: Alex Blekhman
- Re: AxWebBrowser true document size problem
- From: gregl
- Re: AxWebBrowser true document size problem
- From: Alex Blekhman
- Re: AxWebBrowser true document size problem
- From: gregl
- AxWebBrowser true document size problem
- Prev by Date: Re: How to subclass a dialog-based ActiveX control
- Next by Date: Re: How to subclass a dialog-based ActiveX control
- Previous by thread: Re: AxWebBrowser true document size problem
- Next by thread: Re: AxWebBrowser true document size problem
- Index(es):
Relevant Pages
|