aboutsummaryrefslogtreecommitdiffstats
path: root/src/com/itmill/toolkit/terminal/gwt/server
diff options
context:
space:
mode:
authorMatti Tahvonen <matti.tahvonen@itmill.com>2008-12-12 09:08:46 +0000
committerMatti Tahvonen <matti.tahvonen@itmill.com>2008-12-12 09:08:46 +0000
commit8a01bfa98e84db52ee71b7ae3c7cfb4088143623 (patch)
tree60d97830f33877e7d39775885733697b483af86d /src/com/itmill/toolkit/terminal/gwt/server
parente6f4d2f0130e2f1ecc8b173d75f6ca443e0aed2a (diff)
downloadvaadin-framework-8a01bfa98e84db52ee71b7ae3c7cfb4088143623.tar.gz
vaadin-framework-8a01bfa98e84db52ee71b7ae3c7cfb4088143623.zip
Panels with 100% width layout now "legal" if caption is not empty
svn changeset:6187/svn branch:trunk
Diffstat (limited to 'src/com/itmill/toolkit/terminal/gwt/server')
-rw-r--r--src/com/itmill/toolkit/terminal/gwt/server/DebugUtilities.java11
1 files changed, 8 insertions, 3 deletions
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);
+ }
}
}