lib/bundle.js
/**
 * Open the menu as a root menu at the target location.
 */
Open the menu as a root menu at the target location.
Open the menu as a root menu at the target location .
function openRootMenu(menu, x, y, forceX, forceY) {
    var rect = clientViewportRect();
    var size = mountAndMeasure(menu, rect.height - (forceY ? y : 0));
    if (!forceX && (x + size.width > rect.x + rect.width)) {
        x = rect.x + rect.width - size.width;
    }
    if (!forceY && (y + size.height > rect.y + rect.height)) {
        if (y > rect.y + rect.height) {
            y = rect.y + rect.height - size.height;
        }
        else {
            y = y - size.height;
        }
    }
    showMenu(menu, x, y);
}
function openRootMenu ( menu , x , y , forceX , forceY ) { var rect = clientViewportRect ( ) ; var size = mountAndMeasure ( menu , rect . height - ( forceY ? y : 0 ) ) ; if ( ! forceX && ( x + size . width > rect . x + rect . width ) ) { x = rect . x + rect . width - size . width ; } if ( ! forceY && ( y + size . height > rect . y + rect . height ) ) { if ( y > rect . y + rect . height ) { y = rect . y + rect . height - size . height ; } else { y = y - size . height ; } } showMenu ( menu , x , y ) ; }
Open the menu as a root menu at the target location.
Open the menu as a root menu at the target location .