Damian Pieczynski

Results 116 comments of Damian Pieczynski

hmm @markjaniczak do you use some custom measureElement method, default one already use Math.round for exactly this reason https://github.com/TanStack/virtual/blob/main/packages/virtual-core/src/index.ts#L197-L216

> Any solution??? @romlacerda is this happening more? @danprat92 can you update virtual to latest, or covert the example to https://stackblitz.com/

@ConnorLanglois the issue here is that when hiding a list with display none resize observer will kiks in and read the size of elements as 0. There are two solution...

@KevinVandy @k-1ee yeah we can change the implementation if it feels like common use case.

@Dugnist you need to call virtualizer._willUpdate() that will register scroll events and rect size detection.

> having same problem on a nextJs project with latest version (3.5.1) @lucjdo can you create simple stackblitz example?

Yep, 'use no memo' seems like a reasonable temporary workaround! 👍

> Any further updates? Will try to find some time this week, as not that up to date with angular, need to go through comments made by @garrettld