This adds in changes proposed by @lukefoley in issue #749, but uses $menu.outerHeight() instead of $menu.height() so that part of the menu doesn't leave the window, and fixes the context menu going out of the window when created near the right border of the window.
This adds in changes proposed by @lukefoley in issue #749, but uses
$menu.outerHeight()
instead of$menu.height()
so that part of the menu doesn't leave the window, and fixes the context menu going out of the window when created near the right border of the window.