vaadin / flow-components

Java counterpart of Vaadin Web Components
101 stars 66 forks source link

Grid with scrollbar in grid item details cuts off grid content #1492

Open thomasdewaelheyns opened 4 years ago

thomasdewaelheyns commented 4 years ago

Before opening the details: image After opening the details: image

Note how the buttons are cut off.

tomivirkki commented 4 years ago

This is probably because of setHeightByRows dynamically increases the grid height. Should be fixed by dispatching an "iron-resize" event whenever the rows change in grid with heightByRows in use.

As a workaround, you could try invoking grid.getElement().executeJS("this.notifyResize") on the host grid whenever new items are added to the details grid.

thomasdewaelheyns commented 4 years ago

Thanks for the feedback. I'll try notifyResize as a workaround until this issue is fixed.