MCPcopy Index your code
hub / github.com/bvaughn/react-virtualized / getScrollbarWidth

Method getScrollbarWidth

source/Table/Table.js:340–349  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

338 }
339
340 getScrollbarWidth() {
341 if (this.GridElement) {
342 const Grid = this.GridElement;
343 const clientWidth = Grid.clientWidth || 0;
344 const offsetWidth = Grid.offsetWidth || 0;
345 return offsetWidth - clientWidth;
346 }
347
348 return 0;
349 }
350
351 componentDidMount() {
352 this._setScrollbarWidth();

Callers 1

renderMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected