MCPcopy Index your code
hub / github.com/simstudioai/sim / updateHeight

Function updateHeight

packages/emcn/src/components/code/code.tsx:1049–1049  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1047 if (!parent) return
1048
1049 const updateHeight = () => setContainerHeight(parent.clientHeight)
1050 updateHeight()
1051
1052 const resizeObserver = new ResizeObserver(updateHeight)

Callers 1

code.tsxFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected