Re: AxWebBrowser true document size problem
- From: "gregl" <gregl@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Mon, 16 May 2005 07:05:37 -0700
While offsetHeight and offsetWidth are available via Javascript, there
doesn't appear to be any way of accessing those values via the DHTML Object
Model, which is what I am using, since the point where I require the values
is in my C# code not my Javascript. It appears that some values have been
omitted from the Object Model and others are initialized incorrectly or not
at all. Is this a bug or am I missing something here?
"Alex Blekhman" wrote:
> gregl wrote:
> > Anyone know how to obtain the true size of the html
> > document's body? The control contains the size that the
> > control was set to. The body element and the document
> > element clientHeight and clientWidth return 0 when
> > executing the code below. [...]
>
> document.body.offsetWidth and document.body.offsetHeight
> work for me. Also, read this article:
>
> "Measuring Element Dimension and Location"
> http://msdn.microsoft.com/workshop/author/om/measuring.asp
>
>
>
.
- Follow-Ups:
- Re: AxWebBrowser true document size problem
- From: Alex Blekhman
- Re: AxWebBrowser true document size problem
- References:
- AxWebBrowser true document size problem
- From: gregl
- Re: AxWebBrowser true document size problem
- From: Alex Blekhman
- AxWebBrowser true document size problem
- Prev by Date: Keeping WebBrowser in the "Local Zone" after IPersistStreamInit::Load?
- Next by Date: Re: AxWebBrowser true document size problem
- Previous by thread: Re: AxWebBrowser true document size problem
- Next by thread: Re: AxWebBrowser true document size problem
- Index(es):
Relevant Pages
|
|