summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLeif Åstrand <leif@vaadin.com>2012-03-15 10:22:29 +0200
committerLeif Åstrand <leif@vaadin.com>2012-03-15 10:22:29 +0200
commit8ca6ae2a5ea772d8dbac11c0a6915e1d840e5b40 (patch)
tree2bf12a5be9891770c1577ad99bac02868200267c /src
parentdcc700bfa4076b02fd61a2334900fd19fa34f412 (diff)
downloadvaadin-framework-8ca6ae2a5ea772d8dbac11c0a6915e1d840e5b40.tar.gz
vaadin-framework-8ca6ae2a5ea772d8dbac11c0a6915e1d840e5b40.zip
Don't determine row height before the contents are rendered (#8313)
Diffstat (limited to 'src')
-rw-r--r--src/com/vaadin/terminal/gwt/client/ui/VScrollTable.java9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/com/vaadin/terminal/gwt/client/ui/VScrollTable.java b/src/com/vaadin/terminal/gwt/client/ui/VScrollTable.java
index d2e4339ae0..a5d7d9b5b3 100644
--- a/src/com/vaadin/terminal/gwt/client/ui/VScrollTable.java
+++ b/src/com/vaadin/terminal/gwt/client/ui/VScrollTable.java
@@ -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