MCPcopy Create free account
hub / github.com/experdot/pointer / updateHeight

Function updateHeight

src/renderer/src/components/common/TreeView.tsx:377–380  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

375 if (!container) return
376
377 const updateHeight = (): void => {
378 const height = container.clientHeight
379 setTreeHeight(height > 0 ? height : undefined)
380 }
381
382 // 初始化高度
383 updateHeight()

Callers 1

TreeViewFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected