[英]Vaadin 8 grid editor doesn't work correctly
Vaadin 8 editor of grid doesn't work correctly when I double click on cell that I can edit. 当我双击可以编辑的单元格时,网格的Vaadin 8编辑器无法正常工作。
I use the simple code for create grid and add for one column editor component. 我使用简单的代码创建网格并添加一个列编辑器组件。
VerticalLayout content = new VerticalLayout();
content.setMargin(false);
content.setSpacing(false);
content.setSizeFull();
setContent(content);
Grid<OrderModel> grid = new Grid(OrderModel.class);
grid.setItems(generate());
grid.setSizeFull();
grid.getEditor().setEnabled(true);
grid.getColumn("planningStatus").setEditorComponent(getCombobox());
Next I run app and start to scroll grid till column "planningStatus". 接下来,我运行应用程序并开始滚动网格,直到“ planningStatus”列。
So. 所以。 What should I do or how I should fix it for correct open editor in grid?
我应该怎么做或应该如何修复它才能在网格中正确打开编辑器?
Could your problem be related to issue reported here: https://github.com/vaadin/framework/issues/7746 ? 您的问题可能与此处报告的问题有关: https : //github.com/vaadin/framework/issues/7746吗?
There exists now also add-on which fixes couple of known Editor cell sizing issues: 现在还存在一个附加程序,可解决几个已知的Editor单元大小确定问题:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.