]> source.dussan.org Git - vaadin-framework.git/commitdiff
Fix for #4507
authorJohn Alhroos <john.ahlroos@itmill.com>
Wed, 12 May 2010 10:30:08 +0000 (10:30 +0000)
committerJohn Alhroos <john.ahlroos@itmill.com>
Wed, 12 May 2010 10:30:08 +0000 (10:30 +0000)
svn changeset:13169/svn branch:6.3

src/com/vaadin/terminal/gwt/client/ui/VScrollTable.java

index 72efa90ab43406f30912a8951db263b8464e5ab9..f62da54ff13b7817af64a127f8b51f164de3bcea 100644 (file)
@@ -418,6 +418,7 @@ public class VScrollTable extends FlowPanel implements Table, ScrollHandler,
         }
 
         tHead.setVisible(showColHeaders);
+        setContainerHeight();
 
     }
 
@@ -2967,7 +2968,8 @@ public class VScrollTable extends FlowPanel implements Table, ScrollHandler,
      */
     private void setContainerHeight() {
         if (height != null && !"".equals(height)) {
-            int contentH = getOffsetHeight() - tHead.getOffsetHeight();
+            int contentH = getOffsetHeight();
+            contentH -= showColHeaders ? tHead.getOffsetHeight() : 0;
             contentH -= getContentAreaBorderHeight();
             if (contentH < 0) {
                 contentH = 0;