MCPcopy Create free account
hub / github.com/dailydotdev/apps / checkHeight

Function checkHeight

packages/shared/src/components/ExpandableContent.tsx:36–39  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

34 }
35
36 const checkHeight = () => {
37 const contentHeight = element.scrollHeight;
38 setShowSeeMore(contentHeight > maxHeight);
39 };
40
41 // Wait for browser to complete layout before checking height
42 // Using double RAF ensures the layout is fully calculated

Callers 1

ExpandableContentFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected