Problems with customizing TextArea in a FormLayout

Hi,

I am using a FormLayout and I have problems customizing the height of that. Using the following properties of the TextArea.

.setHeight(“100%”);
.setRows(5);
.setColumns(20);
.setWordwrap(true);

Anybody knows why doesn’t work?

Thanks in advance.

Best regards.
12412.png
12413.txt (742 Bytes)

Is the TabSheet and/or FormLayout set to height 100%?

They should be.

Hi Charles,

TabSheet is at 80%, I have changed to 100%. And the FormLayout doesn’t have. I have added 100% height.

But, it persists the error.

I send you a part of my code.
12415.java (2.19 KB)

Hi - you haven’t actually set the form layout to 100% height, but the formitself. Also, as an aside, you aren’t calling super(), which you probably should. Try this:

public class FormWithComplexLayout extends Form {

	private static final long serialVersionUID = 1L;

	public FormWithComplexLayout(BeanItem<EntrevistaInicialBean> entrevistaItem) {
              super();
		// binding al POJO mediante el BeanItem
		setItemDataSource(entrevistaItem);
		// Utilizar FieldFactory para customizar los campos y añadir
		// validaciones
		setFormFieldFactory(new EntrevistaInicialFieldFactory());
		setHeight("100%");
		getLayout().setHeight("100%");
	}
}

Hi Charles,

I have done you tell me and it is still happening.