]> source.dussan.org Git - vaadin-framework.git/commitdiff
Run sizeInit when changing to undefined height (#8525)
authorLeif Åstrand <leif@vaadin.com>
Wed, 14 Mar 2012 14:07:26 +0000 (16:07 +0200)
committerLeif Åstrand <leif@vaadin.com>
Wed, 14 Mar 2012 14:07:26 +0000 (16:07 +0200)
src/com/vaadin/terminal/gwt/client/ui/VScrollTable.java

index 809a4dcb7228b826665634878a777cb6ffe72915..d2e4339ae055f69c1a5a2ccfcd2522a3f4ff027f 100644 (file)
@@ -5764,6 +5764,19 @@ public class VScrollTable extends FlowPanel implements HasWidgets,
         return contentAreaBorderHeight;
     }
 
+    @Override
+    public void setHeight(String height) {
+        if (height.length() == 0
+                && getElement().getStyle().getHeight().length() != 0) {
+            /*
+             * Changing from defined to undefined size -> should do a size init
+             * to take page length into account again
+             */
+            sizeNeedsInit = true;
+        }
+        super.setHeight(height);
+    }
+
     void updateHeight() {
         setContainerHeight();