lib/bundle.js
/**
 * Mount the menu as hidden and compute its optimal size.
 *
 * If the vertical scrollbar become visible, the menu will be expanded
 * by the scrollbar width to prevent clipping the contents of the menu.
 */
Mount the menu as hidden and compute its optimal size.
If the vertical scrollbar become visible, the menu will be expanded
by the scrollbar width to prevent clipping the contents of the menu.
Mount the menu as hidden and compute its optimal size . If the vertical scrollbar become visible the menu will be expanded by the scrollbar width to prevent clipping the contents of the menu .
function mountAndMeasure(menu, maxHeight) {
    var node = menu.node;
    var style = node.style;
    style.top = '';
    style.left = '';
    style.width = '';
    style.height = '';
    style.visibility = 'hidden';
    style.maxHeight = maxHeight + 'px';
    phosphor_widget_1.attachWidget(menu, document.body);
    if (node.scrollHeight > maxHeight) {
        style.width = 2 * node.offsetWidth - node.clientWidth + 'px';
    }
    var rect = node.getBoundingClientRect();
    return { width: rect.width, height: rect.height };
}
function mountAndMeasure ( menu , maxHeight ) { var node = menu . node ; var style = node . style ; style . top = '' ; style . left = '' ; style . width = '' ; style . height = '' ; style . visibility = 'hidden' ; style . maxHeight = maxHeight + 'px' ; phosphor_widget_1 . attachWidget ( menu , document . body ) ; if ( node . scrollHeight > maxHeight ) { style . width = 2 * node . offsetWidth - node . clientWidth + 'px' ; } var rect = node . getBoundingClientRect ( ) ; return { width : rect . width , height : rect . height } ; }
Mount the menu as hidden and compute its optimal size.
Mount the menu as hidden and compute its optimal size .