From 4a97d1e5fbe988f6448ab165cc560e6158ad85a7 Mon Sep 17 00:00:00 2001 From: Matti Tahvonen Date: Tue, 9 Dec 2008 10:11:04 +0000 Subject: [PATCH] fixes #2298. CustomLayout now 100% width by default svn changeset:6128/svn branch:trunk --- src/com/itmill/toolkit/ui/CustomLayout.java | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) 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); } /** -- 2.39.5