Grid data scrolling messed when doing data update and resizing grid

Hi, i’ve got grid with pagination and container data source attached to it.
Behaviour i wanted to achieve is:

  1. let max page size be 25 rows
  2. when user changes page size to 5, 10, 25 → resize grid (grid.setHeightByRows(visibleRows))
  3. when user changes page size to > 25 → resize / let grid size at 25 and display scrollbar.

When testing 3rd option grid has height of 25 rows, displays first 25 rows and when scrolling all other rows are empty! But what worse - scrolled rows are being replaced by those next that should be below.

It looks like a viewport scrolling issue.