我已经为Vaadin 7 Grid定义了自定义编辑器
longColumn.setEditorField(getTextArea());
其中getTextArea()是:
private Field<?> getTextArea() {
TextArea ta=new TextArea();
ta.setWidth("300px");
ta.setHeight("200px");
return ta;
}
TextArea看起来是给定的大小,但是它被裁剪到该行的高度,并且完全不可用。
有什么办法可以使编辑器更大,以便使用那么大的TextArea?
最佳答案
通过使用setRowStyleGenerator()向网格添加新样式来通过CSS添加自定义高度。
关于Vaadin Grid自定义TextArea编辑器未完全显示,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/31453372/