Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Vaadin Grid custom TextArea editor is not being fully shown

Tags:

vaadin

vaadin7

I have defined a custom editor for my Vaadin 7 Grid

longColumn.setEditorField(getTextArea());

where getTextArea() is:

private Field<?> getTextArea() {
   TextArea ta=new TextArea();
   ta.setWidth("300px");
   ta.setHeight("200px");
   return ta;
}

The TextArea appears to be of the given size, but it is cut to the height of the row, and is completely unusable.

enter image description here

Is there any way to make the editor to be bigger in order to use a TextArea that big?

like image 445
Yampeku Avatar asked Nov 10 '22 09:11

Yampeku


1 Answers

Add a custom height via CSS by adding a new style using setRowStyleGenerator() to the Grid.

like image 121
muenzpraeger Avatar answered Dec 30 '22 02:12

muenzpraeger