aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/com/itmill/toolkit/terminal/gwt/server/ComponentSizeValidator.java14
1 files changed, 8 insertions, 6 deletions
diff --git a/src/com/itmill/toolkit/terminal/gwt/server/ComponentSizeValidator.java b/src/com/itmill/toolkit/terminal/gwt/server/ComponentSizeValidator.java
index cca56e3034..ebb868ead4 100644
--- a/src/com/itmill/toolkit/terminal/gwt/server/ComponentSizeValidator.java
+++ b/src/com/itmill/toolkit/terminal/gwt/server/ComponentSizeValidator.java
@@ -543,15 +543,17 @@ public class ComponentSizeValidator {
|| parent instanceof CustomComponent) {
// TODO vertical splitpanel with another non relative component?
return false;
+ } else if (parent instanceof Window) {
+ // Sub window can define width based on caption
+ if (parent.getCaption() != null
+ && !parent.getCaption().equals("")) {
+ return true;
+ } else {
+ return false;
+ }
} else if (parent instanceof Panel) {
// TODO Panel should be able to define width based on caption
return false;
- // if (parent.getCaption() != null
- // && !parent.getCaption().equals("")) {
- // return true;
- // } else {
- // return false;
- // }
} else {
return true;
}