]> source.dussan.org Git - vaadin-framework.git/commitdiff
Don't use negative sizes for IE8's sake (#8313)
authorLeif Åstrand <leif@vaadin.com>
Thu, 22 Mar 2012 14:58:57 +0000 (16:58 +0200)
committerLeif Åstrand <leif@vaadin.com>
Thu, 22 Mar 2012 14:58:57 +0000 (16:58 +0200)
src/com/vaadin/terminal/gwt/client/ui/layout/VLayoutSlot.java

index 10a3b5c6789b6e55c4801f4a39b3c8a99056184e..1caa87cce538b16c432da031dfad826b37d18868 100644 (file)
@@ -144,6 +144,9 @@ public abstract class VLayoutSlot {
         } else {
             captionHeight = getCaptionHeight();
             contentHeight -= captionHeight;
+            if (contentHeight < 0) {
+                contentHeight = 0;
+            }
             style.setPaddingTop(captionHeight, Unit.PX);
         }