MCPcopy Create free account
hub / github.com/Noumena-Network/code / getMountedItemBottomForClamp

Function getMountedItemBottomForClamp

src/hooks/useVirtualScroll.ts:939–943  ·  view source on GitHub ↗
(index: number)

Source from the content-addressed store, hash-verified

937 return yoga.getComputedTop()
938 }
939 const getMountedItemBottomForClamp = (index: number): number | undefined => {
940 const yoga = itemRefs.current.get(itemKeys[index]!)?.yogaNode
941 if (!yoga || yoga.getComputedWidth() === 0) return undefined
942 return yoga.getComputedTop() + yoga.getComputedHeight()
943 }
944 useLayoutEffect(() => {
945 const liveClampBounds = computeVirtualScrollClampBounds({
946 clampEnabled: renderPolicy.clampEnabled,

Callers 1

useVirtualScrollFunction · 0.85

Calls 4

getMethod · 0.45
getComputedWidthMethod · 0.45
getComputedTopMethod · 0.45
getComputedHeightMethod · 0.45

Tested by

no test coverage detected