]> source.dussan.org Git - vaadin-framework.git/commitdiff
Avoid causing scrollbars by leaving undefined height set to auto
authorLeif Åstrand <leif@vaadin.com>
Wed, 11 Apr 2012 17:06:55 +0000 (20:06 +0300)
committerLeif Åstrand <leif@vaadin.com>
Wed, 11 Apr 2012 17:06:55 +0000 (20:06 +0300)
src/com/vaadin/terminal/gwt/client/ui/VTabsheetPanel.java

index 0bca5303675834491018e25c84be22e90912e2b6..b59d846f48d3ebc8c62cb126155e9c7827b1c010 100644 (file)
@@ -191,8 +191,12 @@ public class VTabsheetPanel extends ComplexPanel {
         // v-tabsheet-tabsheetpanel height
         getElement().getStyle().setPropertyPx("height", height);
 
-        // widget wrapper height
-        wrapperDiv.getStyle().setPropertyPx("height", height);
+        if (dynamicHeight) {
+            wrapperDiv.getStyle().clearHeight();
+        } else {
+            // widget wrapper height
+            wrapperDiv.getStyle().setPropertyPx("height", height);
+        }
     }
 
     public void replaceComponent(Widget oldComponent, Widget newComponent) {