From: Artur Signell Date: Tue, 21 Oct 2008 12:13:57 +0000 (+0000) Subject: Fixed relative width bug in OrderedLayout X-Git-Tag: 6.7.0.beta1~3963 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=501f29199412945e4bb8560ee8abc0b79dee629d;p=vaadin-framework.git Fixed relative width bug in OrderedLayout svn changeset:5683/svn branch:trunk --- diff --git a/src/com/itmill/toolkit/terminal/gwt/client/ui/IOrderedLayout.java b/src/com/itmill/toolkit/terminal/gwt/client/ui/IOrderedLayout.java index 7ca5f56aac..5e14496553 100644 --- a/src/com/itmill/toolkit/terminal/gwt/client/ui/IOrderedLayout.java +++ b/src/com/itmill/toolkit/terminal/gwt/client/ui/IOrderedLayout.java @@ -305,7 +305,7 @@ public class IOrderedLayout extends CellBasedLayout { widgetWidth = captionWidth; } } - + int widgetHeight = s.getHeight() + childComponentContainer.getCaptionHeightAboveComponent(); @@ -467,7 +467,7 @@ public class IOrderedLayout extends CellBasedLayout { } else { // Vertical - if (isDynamicHeight()) { + if (isDynamicWidth()) { activeLayoutWidth = maxComponentWidth; setOuterLayoutWidth(maxComponentWidth); } else {