On Nov 24, 3:37 am, bhomass <[email protected]> wrote:
> I need to know when a widget is finished rendering in order to adjust
> its size. I see a javascript method
> element.addEventListener(eventType, handler, capture);
>
> can someone tell me what eventType I can use to detect the completion
> of DOM.createElement()?

createElement is synchronous/blocking; it doesn't return before
completion, so there's no need for an event.
You might need to attach the widget (or at least its element) to the
document though to have its size computed so you can later adjust it.

--

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