Problem inserting Widget in DockLayoutPanel

2 views
Skip to first unread message

jd

unread,
Nov 7, 2009, 3:51:55 AM11/7/09
to Google Web Toolkit
Hi,

I insert and widget into a DockLayoutPanel but the other widgets are
not redrawn correctly. I can see that this is because the inserted
widget is added to the end of the child widget collection and during
layout() its dimensions are not considered until last.

Should this line:


protected void insert(Widget widget, Direction direction, double
size, Widget before) {

...

// Logical attach.
getChildren().add(widget);

be an insert() instead of an add()?

jd

unread,
Nov 17, 2009, 11:01:14 AM11/17/09
to Google Web Toolkit
Reply all
Reply to author
Forward
0 new messages