MCPcopy Create free account
hub / github.com/caseywebdev/react-list / getScrollSize

Method getScrollSize

src/react-list.js:216–223  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

214 }
215
216 getScrollSize() {
217 const { scrollParent } = this;
218 const { body, documentElement } = document;
219 const key = SCROLL_SIZE_KEYS[this.props.axis];
220 return scrollParent === window
221 ? Math.max(body[key], documentElement[key])
222 : scrollParent[key];
223 }
224
225 hasDeterminateSize() {
226 const { itemSizeGetter, type } = this.props;

Callers 3

getScrollPositionMethod · 0.95
react-list.jsFile · 0.80
index.jsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected