this.captionText.addClassName("v-captiontext");
caption.appendChild(this.captionText);
}
- this.captionText.setInnerText(captionText);
+ if (captionText.equals("")) {
+ this.captionText.setInnerHTML(" ");
+ } else {
+ this.captionText.setInnerText(captionText);
+ }
} else if (this.captionText != null) {
this.captionText.removeFromParent();
this.captionText = null;
return true;
}
- if (parent instanceof GridLayout) {
+ if (parent instanceof AbstractOrderedLayout) {
+ boolean horizontal = true;
+ if (parent instanceof VerticalLayout) {
+ horizontal = false;
+ }
+ if (horizontal
+ && hasNonRelativeHeightComponent((AbstractOrderedLayout) parent)) {
+ return true;
+ } else {
+ return false;
+ }
+
+ } else if (parent instanceof GridLayout) {
GridLayout gl = (GridLayout) parent;
Area componentArea = gl.getComponentArea(component);
boolean rowHasHeight = false;
if (parent.getWidth() < 0) {
// Undefined width
- if (parent instanceof GridLayout) {
+ if (parent instanceof AbstractOrderedLayout) {
+ AbstractOrderedLayout ol = (AbstractOrderedLayout) parent;
+ boolean horizontal = true;
+ if (ol instanceof VerticalLayout) {
+ horizontal = false;
+ }
+
+ if (!horizontal && hasNonRelativeWidthComponent(ol)) {
+ // valid situation, other components defined width
+ return true;
+ } else {
+ return false;
+ }
+ } else if (parent instanceof GridLayout) {
GridLayout gl = (GridLayout) parent;
Area componentArea = gl.getComponentArea(component);
boolean columnHasWidth = false;
setPageLength(100);
setHeight("100%");
setSizeFull();
- getLayout().setSizeFull();
addContainerProperty("id", Integer.class, null);
addContainerProperty("text", Component.class, null);
addContainerProperty("button", Button.class, null);