DockLayoutPanel inside custom DecoratorPanel

30 views
Skip to first unread message

Will

unread,
Dec 5, 2009, 10:08:53 PM12/5/09
to Google Web Toolkit
I am trying to create a custom DecoratorPanel that will work with
DockLayoutPanel as the child widget. I tried a normal DecoratorPanel
and found that only Widgets in the North section of the
DockLayoutPanel actually render. I used FireBug to determine that the
rest of the widgets are added to the DOM but are simply not rendering
on the screen.
I have also tried extending DecoratorPanel and implementing
RequiresResize, ProvidesResize but that didn't help. When I
implemented the two interfaces my onResize was as follows:
public void onResize() {
if(getWidget() instanceof RequiresResize){
((RequiresResize)getWidget()).onResize();
}
}
The if logic executes (I verified with a System.out.println) however
the North section is still the only part that renders. The
DecoratorPanel is added to the DOM with:
RootLayoutPanel.get().add(myPanel);
I am going to test with other LayoutPanels and see if this problem is
unique to DockLayoutPanel but I was curious if anyone else has
encountered this or has any suggestions for how I might resolve the
dilemma.

Erik

unread,
Dec 9, 2009, 12:23:23 PM12/9/09
to Google Web Toolkit
Having the same issue here.

instagrammer

unread,
Dec 9, 2009, 10:10:08 PM12/9/09
to Google Web Toolkit
I'm getting the same behavior. North shows up, the others are
somewhere in the dom, but not visible.

On Dec 5, 10:08 pm, Will <wil...@gmail.com> wrote:

daniel brelovsky

unread,
Dec 10, 2009, 10:28:46 AM12/10/09
to google-we...@googlegroups.com
and remove() does not work...

--

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-we...@googlegroups.com.
To unsubscribe from this group, send email to google-web-tool...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.



Will

unread,
Dec 13, 2009, 11:30:25 AM12/13/09
to Google Web Toolkit
In doing some research on DOM layout it looks as though the problem
may be the fact that DecoratorPanel is implemented with a Table.
Every document I read says that height=100% is not reliable with a
table in standards mode which is required for flow layout. I tried
all of the flow layout classes and each one had rendering trouble
inside a table with height=100%. I think my next move is going to be
creating a DecoratorPanel that does not use a table and see if that
works.

On Dec 10, 10:28 am, daniel brelovsky <d.brelov...@googlemail.com>
wrote:
> and remove() does not work...
>
> > google-web-tool...@googlegroups.com<google-web-toolkit%2Bunsu...@googlegroups.com>
> > .

serveez

unread,
Jan 6, 2010, 12:27:14 AM1/6/10
to Google Web Toolkit
try
<g:DockLayoutPanel height="100%">

in firefox or chrome

ylmz

unread,
Feb 23, 2010, 3:18:09 AM2/23/10
to Google Web Toolkit
height="100%" trick worked great for me. thanks
Reply all
Reply to author
Forward
0 new messages