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

Function getOverflow

lib/components/MultiGrid/MultiGrid.test.tsx:225–234  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

223 it("should update the fixed Grids' overflow when enableFixedColumnScroll or enableFixedRowScroll change", () => {
224 const props = { fixedColumnCount: 1, fixedRowCount: 1 };
225 const getOverflow = () => {
226 const [, topRight, bottomLeft] =
227 document.body.querySelectorAll<HTMLElement>(
228 ".ReactVirtualized__Grid"
229 );
230 return {
231 bottomLeftY: bottomLeft.style.overflowY,
232 topRightX: topRight.style.overflowX
233 };
234 };
235
236 render(getMarkup(props));
237 expect(getOverflow()).toEqual({

Callers 1

MultiGrid.test.tsxFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected