T
TanStack4mo ago
fair-rose

Mocking getBoundingClientRect broken

Hi folks, since this PR https://github.com/TanStack/virtual/pull/986 mocking getBoundingClientRect for tests (e.g. using JSDOM in vitest) is broken. Do you have any suggestion how to replace it? All the best, theMattCode
GitHub
fix(virtual-core): prevent measurement jitter when scale is applied...
Problem When using the measureElement function in combination with scaled elements (via CSS transform: scale(...)), the getBoundingClientRect() method returns fractional values that may cause layou...
1 Reply
conventional-tan
conventional-tan4mo ago
Yes, please mock the offsetHeight for scoller element

Did you find this page helpful?