Re: How can I determine size of popup window based on text assigned to body?



"Ken Varn" <nospam> wrote in message
news:%233MtEyfmFHA.3648@xxxxxxxxxxxxxxxxxxxxxxx
>I tried calling getBoundingClientRect(), but the resulting rectangle size is
> always 0. I think it is because the popup object has no size until you call
> the show method.
>
> --
> -----------------------------------
> Ken Varn
> Senior Software Engineer
> Diebold Inc.
>
I should have explained further. I think you would have to try it out first in
an invisible div somewhere on the main page.

--

Joe (MVP)

https://mvp.support.microsoft.com/profile=8AA9D5F5-E1C2-44C7-BCE8-8741D22D17A5


.



Relevant Pages

  • Re: How can I determine size of popup window based on text assigned to body?
    ... I tried calling getBoundingClientRect(), but the resulting rectangle size is ... I think it is because the popup object has no size until you call ... >>I am calling the popup.show method to display a popup object. ... >> pre-set the InnerHTML of the popup object. ...
    (microsoft.public.scripting.jscript)
  • Re: method to access the name of the object that got created.
    ... If R1 is a object of Rectangle class with width 20, on calling ... "R1Is having a width of 20" ...
    (comp.lang.java.programmer)
  • Re: How to draw a rectangle programmetically?
    ... why do you call MoveTo and then draw 4 lines instead ... of calling Rectangle()? ... I only ask because you're an MVP so I'm sure ...
    (microsoft.public.windowsce.embedded.vc)
  • Re: How to draw a rectangle programmetically?
    ... > of calling Rectangle()? ... LineTosets have the great advantage that it can draw any-angle ... rectangle should be orientated. ... If he had specified orthogonal rectangles, ...
    (microsoft.public.windowsce.embedded.vc)
  • device.clear
    ... there's an overloaded version of Device.Clear taking a rectangle[]. ... calling Clear, the only Rectangle in the array is: ... How to quote and why: ...
    (microsoft.public.win32.programmer.directx.managed)