You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fetch and Cache previous row heights (#701) (Fixes#700)
FDT fetches row heights lazily, so the offsets for the currently visible rows at any given point of time will be inaccurate until all the row heights of the previous rows are calculated.
This was a design decision focusing around lazy loading data and maximising performance against huge:no of rows with moderate sacrifices to offset accuracy.
However, this doesn't work out well when scrolling to an arbitrary offset and expecting it to match with other scrollable containers.
This changeset adds in a boolean table prop `isVerticalScrollExact` (defaulted as `false`), which makes the vertical scroll accurate by making FDT fetch the row heights for ALL rows in the table.
There's also an internal cache so that FDT won't request keep requesting all rows on every render.
Incase the cached row height needs to be reset, the new public API `updateRowHeights(rowIndex)` can be used to reset the row heights starting from `rowIndex` until the end of the table.
0 commit comments