Test contextmenu on this page (also in the corners to see how it flips).
Test here too. This demos the concatenation of parent menus.
This one has lots of items, and is supposed to hit the bottom. Also resize the browser to see what happens when the whole menu doesn't fit.