From: Matti Tahvonen Date: Tue, 9 Dec 2008 10:11:04 +0000 (+0000) Subject: fixes #2298. CustomLayout now 100% width by default X-Git-Tag: 6.7.0.beta1~3630 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=4a97d1e5fbe988f6448ab165cc560e6158ad85a7;p=vaadin-framework.git fixes #2298. CustomLayout now 100% width by default svn changeset:6128/svn branch:trunk --- diff --git a/src/com/itmill/toolkit/ui/CustomLayout.java b/src/com/itmill/toolkit/ui/CustomLayout.java index 82ca404a13..8b78699c62 100644 --- a/src/com/itmill/toolkit/ui/CustomLayout.java +++ b/src/com/itmill/toolkit/ui/CustomLayout.java @@ -17,18 +17,17 @@ import com.itmill.toolkit.terminal.PaintTarget; *

* A container component with freely designed layout and style. The layout * consists of items with textually represented locations. Each item contains - * one sub-component, which can be any Toolkit component, such as a layout. - * The adapter and theme are responsible for rendering the - * layout with a given style by placing the items in the defined - * locations. + * one sub-component, which can be any Toolkit component, such as a layout. The + * adapter and theme are responsible for rendering the layout with a given style + * by placing the items in the defined locations. *

* *

* The placement of the locations is not fixed - different themes can define the * locations in a way that is suitable for them. One typical example would be to * create visual design for a web site as a custom layout: the visual design - * would define locations for "menu", "body", and "title", for example. The layout - * would then be implemented as an XHTML template for each theme. + * would define locations for "menu", "body", and "title", for example. The + * layout would then be implemented as an XHTML template for each theme. *

* *

@@ -83,6 +82,7 @@ public class CustomLayout extends AbstractLayout { } templateContents = b.toString(); + setWidth(100, UNITS_PERCENTAGE); } /** @@ -91,6 +91,7 @@ public class CustomLayout extends AbstractLayout { */ public CustomLayout(String template) { templateName = template; + setWidth(100, UNITS_PERCENTAGE); } /**