From: Marc Englund Date: Thu, 3 Jul 2008 12:00:12 +0000 (+0000) Subject: Removed width calculation from iLayout(): it caused #1757, and we were unable to... X-Git-Tag: 6.7.0.beta1~4501 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=1ec8c6f158490650536ef08bd41ff746559f7793;p=vaadin-framework.git Removed width calculation from iLayout(): it caused #1757, and we were unable to come up a case that needed the code. Fixes #1757. svn changeset:5022/svn branch:trunk --- diff --git a/src/com/itmill/toolkit/terminal/gwt/client/ui/IForm.java b/src/com/itmill/toolkit/terminal/gwt/client/ui/IForm.java index 14ab4d3f83..6722e1e421 100644 --- a/src/com/itmill/toolkit/terminal/gwt/client/ui/IForm.java +++ b/src/com/itmill/toolkit/terminal/gwt/client/ui/IForm.java @@ -136,13 +136,6 @@ public class IForm extends ComplexPanel implements Paintable, } public void iLayout() { - // fix contained components container size as they may have relative - // widths - DOM.setStyleAttribute(fieldContainer, "width", ""); - DOM.setStyleAttribute(footerContainer, "width", ""); - int width = DOM.getElementPropertyInt(desc, "offsetWidth"); - DOM.setStyleAttribute(fieldContainer, "width", width + "px"); - DOM.setStyleAttribute(footerContainer, "width", width + "px"); Util.runDescendentsLayout(this); }