Re: how to center a panel within another panel?

2010-05-30 Thread enTropy Fragment
I suggest you to re-think the use CellPanels (this includes VerticalPanel, HorizontalPanel and almost every gwt Panel) to create the layout. They end up being html tables and normally you don't want that. The cleanest approach I found was to use only FlowPanels each one with their ID and then use C

Re: how to center a panel within another panel?

2010-05-29 Thread kozura
You can place equal sized panels in the left/right (and/or top/bottom, not sure how you're trying to center) of the DockLayoutPanel, before adding the center panel. The center panel will then be centered between them. But note with the layout panel methodology, the center panel will take the full

Re: how to center a panel within another panel?

2010-05-29 Thread Stefan Bachert
Hi magnus, you can not use DockLayout to center a widget. Stefan Bachert http://gwtworld.de On 28 Mai, 20:22, Magnus wrote: > Hi, > > I use DockLayoutPanel as the RootPanel for my browser window. And I > want to place another "child" panel within the dockpanels center. > > Well, the child panel

how to center a panel within another panel?

2010-05-28 Thread Magnus
Hi, I use DockLayoutPanel as the RootPanel for my browser window. And I want to place another "child" panel within the dockpanels center. Well, the child panel is always aligned to the upper left. How can I achieve that: a) the DockLayoutPanel really covers the whole browser window b) the child