Even it has contents but in hidden, still don't know the size?

I mean

1. div doesn't have any contents, so size is not determined yet.
2. after 1, div fulfilled remotely by Ajax.updater. so it has contents
now.
3. But it is not rendered yet(because this element is hidden field
now)

At this moment, is it impossible to get the size of element?

On 7월1일, 오후5시32분, "Alex McAuley" <[email protected]>
wrote:
> You cant get the size unless it has either A. Content inside it (which gives
> it a width and height by the browser or B. set the size with css / inline
> styling
>
> HTH
> Alex
>
>
>
> ----- Original Message -----
> From: "serenobs" <[email protected]>
> To: "Prototype & script.aculo.us" <[email protected]>
> Sent: Tuesday, June 30, 2009 9:40 PM
> Subject: [Proto-Scripty] How to get size of div before showing?
>
> > Hi.
>
> > I'd like to know the size of div before showing.
> > For example,
>
> > .my {
> >   position: absolute;
> > }
>
> > with this css, size is not determined yet.
> > I want to place this div at center of viewport after calling
> > Ajax.updater
> > But I can get only initial size unless show element.
>
> > How can I get right size?- 원본 텍스트 숨기기 -
>
> - 원본 텍스트 보기 -
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to