Ivan Pulleyn wrote:
> DockLayoutPanel assumes that "center" is all the space that wasn't taken up
> by a component that was added to the north, east, etc. There's a built in
> assumption that when you call add() you have finished adding any components
> that will be docked to an edge.

The "add" methods for the edges (west, north etc.) seem to mix two
concerns that might better be kept separate: 1) specifying the size
constraint for each edge, and 2) adding the edge child.  (Maybe that's
a bug in itself.)

As a workaround: first add a panel to each of the edges you need.
This sets the size of the edge.  Later you can use the panels to add
and remove the edge children, at any time.

-- 
Michael Allan

Toronto, +1 416-699-9528
http://zelea.com/


> On Wed, Aug 10, 2011 at 3:09 AM, frische <andreasfris...@gmail.com> wrote:
> 
> > Hi,
> > why does DockLayoutPanel need its Center Element last? 

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to