MCPcopy Create free account
hub / github.com/Detaysoft/react-chat-elements / getBottom

Function getBottom

src/MessageList/MessageList.tsx:45–48  ·  view source on GitHub ↗
(e: any)

Source from the content-addressed store, hash-verified

43 }, [prevProps, props])
44
45 const getBottom = (e: any) => {
46 if (e.current) return e.current.scrollHeight - e.current.scrollTop - e.current.offsetHeight
47 return e.scrollHeight - e.scrollTop - e.offsetHeight
48 }
49
50 const onOpen: MessageListEvent = (item, index, event) => {
51 if (props.onOpen instanceof Function) props.onOpen(item, index, event)

Callers 2

MessageListFunction · 0.85
onScrollFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…