()
| 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(); |