MCPcopy Create free account
hub / github.com/thetarnav/solid-devtools / updateScrollData

Function updateScrollData

packages/frontend/src/structure.tsx:513–518  ·  view source on GitHub ↗
(el: HTMLElement)

Source from the content-addressed store, hash-verified

511 const getRowHeight = () => remSize() * row_height_in_rem
512
513 const updateScrollData = (el: HTMLElement): void => {
514 setContainerScroll({
515 top: Math.max(el.scrollTop - getContainerTopMargin(), 0),
516 height: el.clientHeight,
517 })
518 }
519
520 const [collapsed, setCollapsed] = s.createSignal(new WeakSet<Node>(), {equals: false})
521

Callers 1

DisplayStructureTreeFunction · 0.85

Calls 1

getContainerTopMarginFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…