title: GWT TabLayoutPanel - Dynamic height?
body: <p>I have a TabLayoutPanel and i don't want to give it a fixed height like in the following code example (<code>tabPanel.setHeight("100px");</code>). I want to give it the height of the tab content e.g. the HTML-Widget in the first tab). If i don't set the hight manually, the tab content is not shown at all. Is there any way to get this working with a height adapted to the content?</p>
  
  <pre><code>public class GWTTest implements EntryPoint {
  
      public void onModuleLoad() {
          TabLayoutPanel tabPanel = new TabLayoutPanel(3, Unit.EM);
  
          tabPanel.setAnimationDuration(400);
          tabPanel.add(new HTML("Tab1 Content"), "Tab 1");
  
          tabPanel.add(new HTML("Tab2 Content"), "Tab 2");
  
          tabPanel.setHeight("100px");
  
          RootPanel.get().add(tabPanel);
  
      }
  }
  </code></pre>
  
  <p>I also tried to mess around directly in the css with the "overflow" and "postition"-attributes, but this then breaks always the animation or something else.</p>
  
  <p><strong>Edit:</strong> It seems the easiest way would be to implement my own tab panel - or use an existing javascript library.</p>