Hi all,

I'm getting the same behavior, only the north part of the DockLayoutPanel is
displayed.
Need to set DockLayoutPanel's height in pixel to make it work.

Running gwt 2.1.0 M2, here is the structure:

Menu extends Composite
  Menu() {
    panel = new FlowPanel();
    panel.add( new HTML( "menu" ) );
    initWidget( panel );
  }

Application extends Composite
  Application() {
    indexPanel = new DockLayoutPanel( PX );
    indexPanel.addNorth( new HTML("north blah"), 50 );
    indexPanel.addWest( new HTML("west blah"), 50 );
    indexPanel.addEast( new HTML("east blah"), 50 );
    indexPanel.add( new Menu() );

    appDecorator = new DecoratorPanel();
    appDecorator.setWidget( indexPanel );
    appDecorator.setStylePrimaryName( "custom_decorator" );

    initWidget( appDecorator );
  }

RootLayoutPanel.get().add( new Application() );

Few tests:
1) this code, not more: the custom_decorator is displayed, without "center",
with "north" overwriting in the borders.

2) adding: appDecorator.setSize( "100%", "100%" );
    the decorator is properly rendered, and the center is 100%,100%, but,
only "north" is displayed from the DockLayoutPanel

3) adding: indexPanel.setSize( "100%", "100%" ); AND appDecorator.setSize(
"100%", "100%" ); => same as (2)

4) adding: indexPanel.setHeight( "100%"); AND appDecorator.setSize( "100%",
"100%" ); => same as (2)

5) adding: indexPanel.setSize( "300px", "300px" ); AND appDecorator.setSize(
"100%", "100%" );
    finally! DockLayoutPanel is rendered!

Conclusion:
Need to fix the height in PIXEL to get it work properly.

GWT team?

--
Jeanluc

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

Reply via email to