MCPcopy Create free account
hub / github.com/bvaughn/react-virtualized / scrollElement.ts

File scrollElement.ts

lib/utils/test/scrollElement.ts:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1/**
2 * Test-only helpers for components scrolled by a scroll element (their `scrollElement` prop): a scrollable container, or the window.
3 *
4 * jsdom has no layout (every `getBoundingClientRect()` is all zeros), so these helpers install a minimal layout model:

Callers

nothing calls this directly

Calls 1

clearMethod · 0.65

Tested by

no test coverage detected