The safest thing to do is to use Scheduler.get().scheduleDeferred() inside 
Widget.onLoad() or Widget.addAttachHandler(). This will schedule a command 
that is slightly delayed so that the browser has enough time to render 
everything. Then you can read height/width values.

Widget.isAttached() is also available but it only tells you that the widget 
is attached to the DOM and not if its correctly rendered yet.

-- J.


-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/j_b3PLlkkRgJ.
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