]> source.dussan.org Git - vaadin-framework.git/commitdiff
Fixes footer miscalculation issue #3710
authorJohn Alhroos <john.ahlroos@itmill.com>
Thu, 6 Oct 2011 09:32:36 +0000 (09:32 +0000)
committerJohn Alhroos <john.ahlroos@itmill.com>
Thu, 6 Oct 2011 09:32:36 +0000 (09:32 +0000)
svn changeset:21596/svn branch:6.7

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

index 7debc5fe9b8036afc28e9f18c4678e64f605da99..18e0a3790d4f13a1d6eb0b1d9d040a9d8ef213c2 100644 (file)
@@ -300,9 +300,9 @@ public class VForm extends ComplexPanel implements Container, KeyDownHandler {
 \r
     @Override\r
     public void setWidth(String width) {\r
-        if (borderPaddingHorizontal < 0) {\r
+        if (borderPaddingHorizontal < 0 && desc.hasParentElement()) {\r
             // measure excess size lazily after stylename setting, but before\r
-            // setting width\r
+            // setting width if description is attached\r
             int ow = getOffsetWidth();\r
             int dow = desc.getOffsetWidth();\r
             borderPaddingHorizontal = ow - dow;\r