MCPcopy Create free account
hub / github.com/callumalpass/tasknotes / getItemPosition

Method getItemPosition

src/utils/VirtualScroller.ts:258–261  ·  view source on GitHub ↗

* Get the position (top offset) of an item

(index: number)

Source from the content-addressed store, hash-verified

256 * Get the position (top offset) of an item
257 */
258 private getItemPosition(index: number): number {
259 if (index < 0 || index >= this.positionCache.length) return 0;
260 return this.positionCache[index];
261 }
262
263 /**
264 * Rebuild the position cache from measured heights

Callers 2

updateVisibleRangeMethod · 0.95
scrollToIndexMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected