Calling getOffsetWidth() on a widget within a LayoutPanel during onModuleLoad() always returns 0. After onModuleLoad() has completed then it returns a meaningful answer.
See my code below to reproduce this situation. The first Alert displays a value of "0" while the second Alert displays "1280" (since my screen's width is 1680). Does anyone know a way to find out what the width of a widget will be before onModuleLoad() completes? There must be some CSS we can apply so that the absolutely positioned container will know it's width. -- http://groups.google.com/group/Google-Web-Toolkit-Contributors