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.
Note this PR was reopened because I accidentally made it from my master branch the first time
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.
Note this PR was reopened because I accidentally made it from my master branch the first time