From 8a01bfa98e84db52ee71b7ae3c7cfb4088143623 Mon Sep 17 00:00:00 2001 From: Matti Tahvonen Date: Fri, 12 Dec 2008 09:08:46 +0000 Subject: Panels with 100% width layout now "legal" if caption is not empty svn changeset:6187/svn branch:trunk --- .../itmill/toolkit/terminal/gwt/server/DebugUtilities.java | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'src/com/itmill/toolkit/terminal/gwt/server') diff --git a/src/com/itmill/toolkit/terminal/gwt/server/DebugUtilities.java b/src/com/itmill/toolkit/terminal/gwt/server/DebugUtilities.java index 83f3de331c..862e6a3513 100644 --- a/src/com/itmill/toolkit/terminal/gwt/server/DebugUtilities.java +++ b/src/com/itmill/toolkit/terminal/gwt/server/DebugUtilities.java @@ -195,10 +195,15 @@ public class DebugUtilities { } } else if (!(parent instanceof CustomLayout)) { + // CustomLayout's and Panels are omitted. Width can be defined + // by layout or by caption in Window + if (!(parent instanceof Panel && parent.getCaption() != null && !parent + .getCaption().equals(""))) { + // default error for non sized parent issue + msg = "Relative width component's parent should not have undefined width."; + attributes = getWidthAttributes(component); - // default error for non sized parent issue - msg = "Relative width component's parent should not have undefined width."; - attributes = getWidthAttributes(component); + } } } -- cgit v1.2.3