Is there a DecoratorPanel that works with LayoutPanel children?

96 views
Skip to first unread message

Danni

unread,
Feb 23, 2010, 5:14:20 AM2/23/10
to Google Web Toolkit
Hi,

I am looking for a DecoratorPanel that works when LayoutPanels are
added to it as children (a 'DecoratorLayoutPanel').
If I use the current DecoratorPanel (shipped with gwt 2.0.2) and add a
LayoutPanel to it, the layout panel is not displayed because it uses
position:relative as opposed to the decorator panel which uses
position:absolute.

How do you deal with this problem? Is it planned to add a
DecoratorLayoutPanel?

My general feeling with the new gwt 2.0.x layout panels is that
whenever you put a non-LayoutPanel in your widget hierarchy you should
not never ever attempt to add LayoutPanel children further down in the
hierarchy as this will mess up your layout. Did you have the same
experience?

thanks for any suggestions and feedback,

Danni

AndiMullaraj

unread,
Mar 5, 2010, 8:08:19 PM3/5/10
to Google Web Toolkit
I think you are right, there should be a direct link of LayoutPanel to
the RootLayoutPanel in order for things to work. When I test with
something simpe though (like adding a SimplePanel to the
RootLayoutPanel and then my LayoutPanel on top of it) things seem to
work. But not in a more complicated case that I curently have ...
will try to find out ...

Andi

On Feb 23, 5:14 am, Danni <ledannibl...@gmail.com> wrote:
> Hi,
>
> I am looking for a DecoratorPanel that works when LayoutPanels are
> added to it as children (a 'DecoratorLayoutPanel').

> If I use the current DecoratorPanel (shipped with gwt 2.0.2) and add aLayoutPanelto it, the layout panel is not displayed because it uses


> position:relative as opposed to the decorator panel which uses
> position:absolute.
>
> How do you deal with this problem? Is it planned to add a
> DecoratorLayoutPanel?
>
> My general feeling with the new gwt 2.0.x layout panels is that

> whenever you put a non-LayoutPanelin your widget hierarchy you should
> not never ever attempt to addLayoutPanelchildren further down in the

Paul Stockley

unread,
Mar 5, 2010, 8:20:43 PM3/5/10
to Google Web Toolkit
I've had no problem putting LayoutPanels such as TabLayoutPanel as
children on non-layout panels such as DialogBox. However, you have to
explicitly set the size of the layout panel for it to work.

Francis

unread,
Aug 7, 2011, 2:41:29 AM8/7/11
to google-we...@googlegroups.com
Try this DecoratorLayoutPanel class

Francis

unread,
Aug 7, 2011, 8:55:14 AM8/7/11
to google-we...@googlegroups.com
Try this DecoratorLayoutPanel class
Reply all
Reply to author
Forward
0 new messages