简体   繁体   中英

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.

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".

How it works: 在此处输入图片说明

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 ?

There exists now also add-on which fixes couple of known Editor cell sizing issues:

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM