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

Function isAbsolutelyPositioned

lib/utils/test/scrollElement.ts:47–50  ·  view source on GitHub ↗
(element: Element)

Source from the content-addressed store, hash-verified

45}
46
47function isAbsolutelyPositioned(element: Element) {
48 const position = getStyle(element)?.position;
49 return position === "absolute" || position === "fixed";
50}
51
52function getLayoutHeight(element: Element): number {
53 const containerRect = containerRects.get(element);

Callers 2

getLayoutHeightFunction · 0.85
getLayoutTopFunction · 0.85

Calls 1

getStyleFunction · 0.85

Tested by

no test coverage detected