question on GWT and dockpanel , sizing and resizing

Posted by molleman on Stack Overflow See other posts from Stack Overflow or by molleman
Published on 2010-06-07T21:43:46Z Indexed on 2010/06/08 9:42 UTC
Read the original article Hit count: 533

Hello guys,

question on dock panels within gwt

So i want the dockpanel to take up the whole size of the browser window

        dockPanel.setSize("100%", "100%");

if this correct

Next Question, i am going to add a north panel , that will be 100px high and take up the whole width of the browser

    topPanel.setSize("100%", "100px");
    dockPanel.add(topPanel, DockPanel.NORTH);

is this correct, then i want to add a west panel that is 200px wide and the whole length of the browser up to just under the north panel westSideStackPanel.setSize("200px","100%") mainPanel.add(westSideStackPanel,DockPanel.WEST);

i have created all this but when i look at my dockpanel there is a big gap between the west panel and the north panel the whole way accross the screen. why would this be?

The north panel stays at 100px, and then there is a gap of about 100px high the whole width of the screen.

alt text

© Stack Overflow or respective owner

Related posts about java

Related posts about web-development