No LayoutPanel.onResize() event on panel attach

53 views
Skip to first unread message

Antón Kuranov

unread,
Feb 20, 2012, 12:49:49 PM2/20/12
to Google Web Toolkit
Hello,

I need a panel that lays out its children manually according it's
current size. I did it changing onResize() method of LayoutPanel. The
problem is that onResize() is not called initially when the panel is
just attached, only when resized, and thus children sizes could not be
set: when attaching getOffsetHeight() and getOffsetWidth() always
return 0. Intercepting of onLoad() and onAttach() does not help.

Is there any way to intercept an event when LayoutPanel aquires it's
initial size?

Antón

Thomas Broyer

unread,
Feb 21, 2012, 3:42:36 AM2/21/12
to google-we...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages