MCPcopy Create free account
hub / github.com/TanStack/hotkeys / applyHeight

Function applyHeight

packages/hotkeys-devtools/src/components/Shell.tsx:96–102  ·  view source on GitHub ↗
(entry?: ResizeObserverEntry)

Source from the content-addressed store, hash-verified

94 if (!pluginHost) return
95
96 const applyHeight = (entry?: ResizeObserverEntry) => {
97 const clientH = pluginHost.clientHeight
98 const fromObserver =
99 entry !== undefined ? readResizeObserverBlockSize(entry) : 0
100 const h = clientH > 0 ? clientH : fromObserver
101 if (h > 0) setSlotHeightPx(Math.round(h))
102 }
103
104 applyHeight()
105 const ro = new ResizeObserver((entries) => {

Callers 1

ShellFunction · 0.85

Calls 1

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…