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

Function getStyle

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

Source from the content-addressed store, hash-verified

41}
42
43function getStyle(element: Element): CSSStyleDeclaration | null {
44 return element instanceof HTMLElement ? element.style : null;
45}
46
47function isAbsolutelyPositioned(element: Element) {
48 const position = getStyle(element)?.position;

Callers 4

isAbsolutelyPositionedFunction · 0.85
getLayoutHeightFunction · 0.85
getLayoutTopFunction · 0.85
getBoundingClientRectFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected