title: Can't adapt gridlayout to screen size (Vaadin 6.7.4)
body: <p>I have a problem with a gridLayout to adapted to user screen size, I want to create a gridLayout with 3 columns and 2 rows, the first row will contain a menu, the second row will be the body using a panel, and the first column X second row will contain a tree but I can't get the result that I want, this code show the panel but not full size
  Here's my code I can't found why it doesn't work !!</p>
  
  <pre><code>@Override
  public void init() {
  
      Window main = new Window("My App");
      main.setSizeFull();
      setMainWindow(main);
  
      VerticalLayout root = new VerticalLayout();
      main.setContent(root);
      main.getContent().setSizeFull();
  
      GridLayout grid = new GridLayout(3, 2);
  
      main.addComponent(grid);
  
      grid.setColumnExpandRatio(0, 0.13f);
      grid.setColumnExpandRatio(1, 0.86f);
      grid.setColumnExpandRatio(2, 0.0f);
  
  
      grid.setHeight(100, Sizeable.UNITS_PERCENTAGE);
      grid.setWidth(100,Sizeable.UNITS_PERCENTAGE);
  
  
      grid.addComponent(new Label("menu"), 0, 0, 0, 1);
      grid.addComponent(new Label("tree"), 1, 0, 1, 0);
  
      Panel pan = new Panel();
      pan.setWidth(100, Sizeable.UNITS_PERCENTAGE);
      pan.setHeight(100, Sizeable.UNITS_PERCENTAGE);
  
      VerticalLayout body = new VerticalLayout();
      body.setSizeFull();
  
      body.addComponent(pan);
  
      grid.addComponent(body, 1, 1, 1, 1);
  
  }
  </code></pre>