From: John Alhroos Date: Thu, 6 Oct 2011 09:32:36 +0000 (+0000) Subject: Fixes footer miscalculation issue #3710 X-Git-Tag: 6.7.1~56 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=966ed9f9c3225cf6afbee633ebd03d81d5527d97;p=vaadin-framework.git Fixes footer miscalculation issue #3710 svn changeset:21596/svn branch:6.7 --- diff --git a/src/com/vaadin/terminal/gwt/client/ui/VForm.java b/src/com/vaadin/terminal/gwt/client/ui/VForm.java index 7debc5fe9b..18e0a3790d 100644 --- a/src/com/vaadin/terminal/gwt/client/ui/VForm.java +++ b/src/com/vaadin/terminal/gwt/client/ui/VForm.java @@ -300,9 +300,9 @@ public class VForm extends ComplexPanel implements Container, KeyDownHandler { @Override public void setWidth(String width) { - if (borderPaddingHorizontal < 0) { + if (borderPaddingHorizontal < 0 && desc.hasParentElement()) { // measure excess size lazily after stylename setting, but before - // setting width + // setting width if description is attached int ow = getOffsetWidth(); int dow = desc.getOffsetWidth(); borderPaddingHorizontal = ow - dow;