]> source.dussan.org Git - vaadin-framework.git/commitdiff
Fix for #5882
authorJohn Alhroos <john.ahlroos@itmill.com>
Tue, 26 Oct 2010 09:10:47 +0000 (09:10 +0000)
committerJohn Alhroos <john.ahlroos@itmill.com>
Tue, 26 Oct 2010 09:10:47 +0000 (09:10 +0000)
svn changeset:15706/svn branch:6.4

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

index 59dd4f96111dd631aaa69582da622a8d2f0fe2ab..d06d6b11a3ccebafcc3465ce1de3af3f29c9cbed 100644 (file)
@@ -1,4 +1,4 @@
-/* 
+/*
 @ITMillApache2LicenseForJavaFiles@
  */
 
@@ -413,8 +413,10 @@ public class VGridLayout extends SimplePanel implements Paintable, Container {
         int canvasHeight;
         if ("".equals(height)) {
             canvasHeight = y - spacingPixelsVertical;
-        } else {
+        } else if (getOffsetHeight() > marginTopAndBottom) {
             canvasHeight = getOffsetHeight() - marginTopAndBottom;
+        } else {
+            canvasHeight = 0;
         }
         canvas.setHeight(canvasHeight + "px");
     }