]> source.dussan.org Git - vaadin-framework.git/commitdiff
Don't determine row height before the contents are rendered (#8313)
authorLeif Åstrand <leif@vaadin.com>
Thu, 15 Mar 2012 08:22:29 +0000 (10:22 +0200)
committerLeif Åstrand <leif@vaadin.com>
Thu, 15 Mar 2012 08:22:29 +0000 (10:22 +0200)
src/com/vaadin/terminal/gwt/client/ui/VScrollTable.java

index d2e4339ae055f69c1a5a2ccfcd2522a3f4ff027f..a5d7d9b5b3c2d0a112bab567dcdbf6ed0c8b6548 100644 (file)
@@ -1608,6 +1608,9 @@ public class VScrollTable extends FlowPanel implements HasWidgets,
             return;
         }
         sizeNeedsInit = false;
+
+        scrollBody.setContainerHeight();
+
         /*
          * We will use browsers table rendering algorithm to find proper column
          * widths. If content and header take less space than available, we will
@@ -4146,12 +4149,6 @@ public class VScrollTable extends FlowPanel implements HasWidgets,
             throw new UnsupportedOperationException();
         }
 
-        @Override
-        protected void onAttach() {
-            super.onAttach();
-            setContainerHeight();
-        }
-
         /**
          * Fix container blocks height according to totalRows to avoid
          * "bouncing" when scrolling