MCPcopy
hub / github.com/codeaashu/claude-code / getFreshScrollHeight

Function getFreshScrollHeight

src/ink/components/ScrollBox.tsx:174–177  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

172 return domRef.current?.scrollHeight ?? 0;
173 },
174 getFreshScrollHeight() {
175 const content = domRef.current?.childNodes[0] as DOMElement | undefined;
176 return content?.yogaNode?.getComputedHeight() ?? domRef.current?.scrollHeight ?? 0;
177 },
178 getViewportHeight() {
179 return domRef.current?.scrollViewportHeight ?? 0;
180 },

Callers

nothing calls this directly

Calls 1

getComputedHeightMethod · 0.45

Tested by

no test coverage detected