]> source.dussan.org Git - vaadin-framework.git/commitdiff
Fixed problem when Table pagelength==0 and components wrap (#9067)
authorArtur Signell <artur@vaadin.com>
Fri, 29 Jun 2012 12:20:55 +0000 (15:20 +0300)
committerArtur Signell <artur@vaadin.com>
Fri, 29 Jun 2012 12:21:10 +0000 (15:21 +0300)
src/com/vaadin/terminal/gwt/client/ui/table/VScrollTable.java

index 4021fc12306d04fc98d980fb46c63308848e9e3a..e2aedd123fe141651918e44fede81d45822a06de 100644 (file)
@@ -5790,7 +5790,7 @@ public class VScrollTable extends FlowPanel implements HasWidgets,
             if (isDynamicHeight() && totalRows == pageLength) {
                 // fix body height (may vary if lazy loading is offhorizontal
                 // scrollbar appears/disappears)
-                int bodyHeight = Util.getRequiredHeight(scrollBody);
+                int bodyHeight = scrollBody.getRequiredHeight();
                 boolean needsSpaceForHorizontalScrollbar = (availW < usedMinimumWidth);
                 if (needsSpaceForHorizontalScrollbar) {
                     bodyHeight += Util.getNativeScrollbarSize();