Re: AxWebBrowser true document size problem

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



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
>
>
>
.



Relevant Pages

  • Re: AxWebBrowser true document size problem
    ... > While offsetHeight and offsetWidth are available via ... > values is in my C# code not my Javascript. ... > that some values have been omitted from the Object Model ... DHTML Object Model is a set ...
    (microsoft.public.inetsdk.programming.webbrowser_ctl)
  • Performance of offsetHeight and offsetWidth with dynamic content
    ... I have a javascript that uses offsetHeight and offsetWidth to do some ... layout of my page, however recently all the contents of my page are ...
    (comp.lang.javascript)
  • Re: Is this impossible?
    ... offsetHeight. ... That just might be the beginning of FontMetrics in JavaScript. ...
    (comp.lang.javascript)