AFAIK, it has to be attached and (theoretically) visible for you to get the
size, but you can set the left position to -20000 or something silly so it
won't be seen. Not +ve or you might get scroll-bars. If you find a better
way, please post it :-)
Ian

http://examples.roughian.com


2008/10/21 r a f t <[EMAIL PROTECTED]>

>
> hello,
>
> placing certain widgets  (such as a popup) requires size of widget, so
> is it possible to get the size of a  widget before making it visible ?
> getOffsetWidth() / Height() methods return zero when widget is not
> visible.
>
> making widget visible, getting size and then placing it seems to be
> workaround but i guess it will cause flicker
>
> thanks,
> r a f t
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" 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/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to