Vaadin 14 Grid scrollToIndex method remove first row from grid

Hello,

I have found maybe some bug at the method scrollToIndex on the Vaadin 14 grid component. After select the row and call this method with its index I can see that it was scrolled on right position, but it was removed first row from the grid. This row is replaced by empty space and it looks like empty row. But this behaviour is not everytime. It seems that when I scroll on the grid manually before, it works correct.

Are you able to reproduce this problem and maybe give me some hint how to make any workaround?

In the grid there are more rows than visible part so the scroller is visible. New item is add on the end of the grid.

Thnx

Plase see my answer at:
https://vaadin.com/forum/thread/17523759/grid-issue-with-javascript-scrolltoindex

Regards

It’s working, thank you very much. You have saved my life :slight_smile: