Important Notice - Forums is archived
To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.

Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.
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.
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.
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.