src/virtual-scrolling-tree/VirtualScrollingTree.js
function getNativeScrollbarWidth() {
    let outer = document.createElement('div');
    outer.style.overflowY = 'scroll';
    outer.setAttribute('class', _(this).scrollbarClass);
    outer.style.visibility = 'hidden';
    outer.style.width = '100px';
    document.body.appendChild(outer);
    let content = document.createElement('div');
    outer.appendChild(content);
    var width = 100 - Math.floor(content.getBoundingClientRect().width);
    document.body.removeChild(outer);
    return width;
}
function getNativeScrollbarWidth() {
    let outer = document.createElement('div');
    outer.style.overflowY = 'scroll';
    outer.setAttribute('class', _(this).scrollbarClass);
    outer.style.visibility = 'hidden';
    outer.style.width = '100px';
    document.body.appendChild(outer);
    let content = document.createElement('div');
    outer.appendChild(content);
    var width = 100 - Math.floor(content.getBoundingClientRect().width);
    document.body.removeChild(outer);
    return width;
}
function getNativeScrollbarWidth ( ) { let outer = document . createElement ( 'div' ) ; outer . style . overflowY = 'scroll' ; outer . setAttribute ( 'class' , _ ( this ) . scrollbarClass ) ; outer . style . visibility = 'hidden' ; outer . style . width = '100px' ; document . body . appendChild ( outer ) ; let content = document . createElement ( 'div' ) ; outer . appendChild ( content ) ; var width = 100 - Math . floor ( content . getBoundingClientRect ( ) . width ) ; document . body . removeChild ( outer ) ; return width ; }
Creates a div which is used to calculate the width
of the scrollbar for the current browser.

@method getNativeScrollbarWidth
@private
@return {number}
Creates a div which is used to calculate the width of the scrollbar for the current browser .